AVAX Price: $35.52 (+11.31%)
 

Overview

Max Total Supply

199,000,009.899 AUCA

Holders

3 (0.00%)

Total Transfers

-

Market

Price

$0.07 @ 0.001988 AVAX (-5.05%)

Onchain Market Cap

$14,052,005.01

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The AUC project provides blockchain financial integration solutions for Payment Services, Remittance Services, Digital Asset Exchange, Public System Services to users in 54 African countries.

Market

Volume (24H):$106,756.37
Market Capitalization:$0.00
Circulating Supply:0.00 AUCA
Market Data Source: Coinmarketcap

Contract Source Code Verified (Exact Match)

Contract Name:
WrappedAUC

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 9 : WrappedAUC.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {ILayerZeroEndpoint} from "./interfaces/ILayerZeroEndpoint.sol";
import {ILayerZeroReceiver} from "./interfaces/ILayerZeroReceiver.sol";

/// @dev wrapper contract to be deployed to other dst chains
contract WrappedAUC is ERC20, Ownable, ILayerZeroReceiver {
    /*///////////////////////////////////////////////////////////////
                            STATE VARIABLES
    //////////////////////////////////////////////////////////////*/
    uint16 public immutable LZ_CHAIN_ID;

    /// @dev not declared as constant to prevent vendor lock-in
    ILayerZeroEndpoint public endpoint;

    /// @dev mapping trusted remote
    mapping(uint16 => bytes) public trustedRemote;

    /// @dev total src chain tx counter
    uint256 public txCounter;

    /// @dev map nonce to processed state to prevent replay attack
    mapping(bytes => mapping(uint16 => mapping(uint64 => bool))) public nonceStatus;

    /// @dev transfer fees per tx
    uint256 public transferFeePercent = 50;

    /*///////////////////////////////////////////////////////////////
                                MODIFIER
    //////////////////////////////////////////////////////////////*/
    modifier onlyEndpoint() {
        require(msg.sender == address(endpoint), "wrapper/caller-not-endpoint");
        _;
    }

    /*///////////////////////////////////////////////////////////////
                                EVENTS
    //////////////////////////////////////////////////////////////*/
    event BridgingInitiated(
        uint16 srcChainId, uint16 dstChainId, uint256 srcTxIndex, address indexed receiver, uint256 amount, uint256 fees
    );
    event BridgingCompleted(
        uint16 srcChainId, uint16 dstChainId, uint256 srcTxIndex, address indexed receiver, uint256 amount
    );

    event EndpointUpdated(address indexed oldEndpoint, address indexed newEndpoint);
    event TrustedRemoteUpdated(uint16 indexed dstChainId, bytes trustedRemote);

    /// @dev emitted when transfer fees are updated.
    event TransferFeeUpdated(uint256 oldFees, uint256 newFees);

    /*///////////////////////////////////////////////////////////////
                                CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/
    constructor(uint16 _lzChainId, address _endpoint, string memory _name, string memory _symbol)
        ERC20(_name, _symbol)
        Ownable(msg.sender)
    {
        LZ_CHAIN_ID = _lzChainId;
        endpoint = ILayerZeroEndpoint(_endpoint);

        emit EndpointUpdated(address(0), _endpoint);
    }

    /*///////////////////////////////////////////////////////////////
                            EXTERNAL FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /// @notice Initiates a cross-chain token transfer.
    /// @param _receiver The recipient's address on the destination chain.
    /// @param _amount The amount of tokens to transfer.
    /// @param _dstChainId The destination chain's ID.
    /// @param _adapterParams Additional adapter parameters.
    function xChainTransfer(address _receiver, uint256 _amount, uint16 _dstChainId, bytes memory _adapterParams)
        external
        payable
    {
        require(trustedRemote[_dstChainId].length > 0, "bridge/invalid-dst-chain-id");

        uint256 balanceBefore = balanceOf(msg.sender);
        require(balanceBefore >= _amount, "wrapper/insufficient-balance");

        _burn(msg.sender, _amount);
        uint256 balanceAfter = balanceOf(msg.sender);

        require(balanceBefore - balanceAfter == _amount, "wrapper/burn-failed");

        uint256 fees = (_amount * transferFeePercent) / 10000;
        uint256 finalAmount = _amount - fees;

        ++txCounter;
        endpoint.send{value: msg.value}(
            _dstChainId,
            trustedRemote[_dstChainId],
            abi.encode(_receiver, finalAmount, txCounter),
            payable(msg.sender),
            address(0),
            _adapterParams
        );
        emit BridgingInitiated(LZ_CHAIN_ID, _dstChainId, txCounter, _receiver, finalAmount, fees);
    }

    /*///////////////////////////////////////////////////////////////
                              AUTH FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /// @notice Updates the LayerZero endpoint contract address.
    /// @param _newEndpoint The new endpoint contract address.
    function updateEndpoint(address _newEndpoint) external onlyOwner {
        address oldEndpoint = address(endpoint);
        endpoint = ILayerZeroEndpoint(_newEndpoint);

        emit EndpointUpdated(oldEndpoint, _newEndpoint);
    }

    /// @notice Sets a trusted remote address for a destination chain.
    /// @param _dstChainId The destination chain's ID.
    /// @param _trustedRemote The trusted remote address.
    function setTrustedRemote(uint16 _dstChainId, bytes memory _trustedRemote) external onlyOwner {
        trustedRemote[_dstChainId] = _trustedRemote;

        emit TrustedRemoteUpdated(_dstChainId, _trustedRemote);
    }

    /// @notice Sets the transfer fee per transaction
    /// @param _transferFeePercent the transfer fee percent (eg: 100% = 10000)
    function setTransferFees(uint256 _transferFeePercent) external onlyOwner {
        uint256 oldFees = transferFeePercent;
        transferFeePercent = _transferFeePercent;

        emit TransferFeeUpdated(oldFees, _transferFeePercent);
    }

    /// @dev generic config for LayerZero user Application
    function setConfig(uint16 _version, uint16 _chainId, uint256 _configType, bytes calldata _config)
        external
        onlyOwner
    {
        endpoint.setConfig(_version, _chainId, _configType, _config);
    }

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

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

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

    /*///////////////////////////////////////////////////////////////
                        EXTERNAL VIEW FUNCTIONS
    //////////////////////////////////////////////////////////////*/
    function estimateFees(address _receiver, uint256 _amount, uint16 _dstChainId, bytes memory _adapterParams)
        external
        view
        returns (uint256)
    {
        bytes memory message = abi.encode(_receiver, _amount, txCounter);
        (uint256 fees,) = endpoint.estimateFees(_dstChainId, address(this), message, false, _adapterParams);
        return fees;
    }

    /*///////////////////////////////////////////////////////////////
                            INTERNAL FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /// @notice Handles the reception of tokens on the LayerZero chain.
    /// @param _srcChainId The source chain's ID.
    /// @param _srcAddress The source address on the source chain.
    /// @param _nonce The nonce of the transaction.
    /// @param _payload The payload containing receiver, amount, and transaction ID.
    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload)
        external
        onlyEndpoint
    {
        require(_srcAddress.length == trustedRemote[_srcChainId].length, "wrapper/invalid-src-sender-length");
        require(keccak256(_srcAddress) == keccak256(trustedRemote[_srcChainId]), "wrapper/invalid-src-sender");
        require(!nonceStatus[_srcAddress][_srcChainId][_nonce], "wrapper/invalid-nonce");

        nonceStatus[_srcAddress][_srcChainId][_nonce] = true;
        (address receiver, uint256 amount, uint256 srcTxId) = abi.decode(_payload, (address, uint256, uint256));
        _mint(receiver, amount);

        emit BridgingCompleted(_srcChainId, LZ_CHAIN_ID, srcTxId, receiver, amount);
    }
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

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

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

        emit Transfer(from, to, value);
    }

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

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

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

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

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

File 4 of 9 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

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, uint256 _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;
}

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_,
        uint256 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 (uint256 nativeFee, uint256 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_, uint256 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 5 of 9 : ILayerZeroReceiver.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

/// @dev is imported from
/// (https://github.com/LayerZero-Labs/LayerZero/blob/main/contracts/interfaces/ILayerZeroReceiver.sol)
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 6 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "pigeon/=lib/pigeon/src/",
    "solady/=lib/pigeon/lib/solady/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint16","name":"_lzChainId","type":"uint16"},{"internalType":"address","name":"_endpoint","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":"uint16","name":"srcChainId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"srcTxIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgingCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"srcChainId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"srcTxIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fees","type":"uint256"}],"name":"BridgingInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldEndpoint","type":"address"},{"indexed":true,"internalType":"address","name":"newEndpoint","type":"address"}],"name":"EndpointUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFees","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFees","type":"uint256"}],"name":"TransferFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"dstChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"trustedRemote","type":"bytes"}],"name":"TrustedRemoteUpdated","type":"event"},{"inputs":[],"name":"LZ_CHAIN_ID","outputs":[{"internalType":"uint16","name":"","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateFees","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":"_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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"nonceStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"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":"uint256","name":"_transferFeePercent","type":"uint256"}],"name":"setTransferFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_trustedRemote","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"trustedRemote","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"txCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newEndpoint","type":"address"}],"name":"updateEndpoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"xChainTransfer","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040526032600a553480156200001657600080fd5b506040516200225a3803806200225a83398101604081905262000039916200020c565b33828260036200004a838262000343565b50600462000059828262000343565b5050506001600160a01b0381166200008b57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200009681620000f2565b5061ffff8416608052600680546001600160a01b0319166001600160a01b0385169081179091556040516000907f241827194635b544bceb965d0e124305c0968051403ae83cb99d1ef86bd65f58908290a3505050506200040f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200016c57600080fd5b81516001600160401b038082111562000189576200018962000144565b604051601f8301601f19908116603f01168101908282118183101715620001b457620001b462000144565b8160405283815260209250866020858801011115620001d257600080fd5b600091505b83821015620001f65785820183015181830184015290820190620001d7565b6000602085830101528094505050505092915050565b600080600080608085870312156200022357600080fd5b845161ffff811681146200023657600080fd5b60208601519094506001600160a01b03811681146200025457600080fd5b60408601519093506001600160401b03808211156200027257600080fd5b62000280888389016200015a565b935060608701519150808211156200029757600080fd5b50620002a6878288016200015a565b91505092959194509250565b600181811c90821680620002c757607f821691505b602082108103620002e857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200033e576000816000526020600020601f850160051c81016020861015620003195750805b601f850160051c820191505b818110156200033a5782815560010162000325565b5050505b505050565b81516001600160401b038111156200035f576200035f62000144565b6200037781620003708454620002b2565b84620002ee565b602080601f831160018114620003af5760008415620003965750858301515b600019600386901b1c1916600185901b1785556200033a565b600085815260208120601f198616915b82811015620003e057888601518255948401946001909101908401620003bf565b5085821015620003ff5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051611e2162000439600039600081816103cf0152818161083c0152610cdc0152611e216000f3fe6080604052600436106101b65760003560e01c80638da5cb5b116100ec578063cbed8b9c1161008a578063e38c680211610064578063e38c680214610515578063e776ac5e14610566578063eb8d72b714610586578063f2fde38b146105a657600080fd5b8063cbed8b9c1461048f578063d26ed3e3146104af578063dd62ed3e146104cf57600080fd5b806395d89b41116100c657806395d89b411461041a578063a7170d481461042f578063a9059cbb1461044f578063ac4479441461046f57600080fd5b80638da5cb5b1461039f578063935ec990146103bd57806394544e641461040457600080fd5b8063313ce567116101595780636f0e7470116101335780636f0e74701461032b57806370a082311461033e578063715018a61461037457806374f079b81461038957600080fd5b8063313ce567146102b757806342d65a8d146102d35780635e280f11146102f357600080fd5b8063095ea7b311610195578063095ea7b31461022857806310ddb1371461025857806318160ddd1461027857806323b872dd1461029757600080fd5b80621d3567146101bb57806306fdde03146101dd57806307e0db1714610208575b600080fd5b3480156101c757600080fd5b506101db6101d63660046114d1565b6105c6565b005b3480156101e957600080fd5b506101f26108b1565b6040516101ff91906115ab565b60405180910390f35b34801561021457600080fd5b506101db6102233660046115c5565b610943565b34801561023457600080fd5b506102486102433660046115f5565b6109b0565b60405190151581526020016101ff565b34801561026457600080fd5b506101db6102733660046115c5565b6109ca565b34801561028457600080fd5b506002545b6040519081526020016101ff565b3480156102a357600080fd5b506102486102b2366004611621565b610a06565b3480156102c357600080fd5b50604051601281526020016101ff565b3480156102df57600080fd5b506101db6102ee366004611662565b610a2a565b3480156102ff57600080fd5b50600654610313906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b6101db610339366004611758565b610a9d565b34801561034a57600080fd5b506102896103593660046117c2565b6001600160a01b031660009081526020819052604090205490565b34801561038057600080fd5b506101db610d61565b34801561039557600080fd5b5061028960085481565b3480156103ab57600080fd5b506005546001600160a01b0316610313565b3480156103c957600080fd5b506103f17f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff90911681526020016101ff565b34801561041057600080fd5b50610289600a5481565b34801561042657600080fd5b506101f2610d75565b34801561043b57600080fd5b506101db61044a3660046117c2565b610d84565b34801561045b57600080fd5b5061024861046a3660046115f5565b610dde565b34801561047b57600080fd5b506101f261048a3660046115c5565b610dec565b34801561049b57600080fd5b506101db6104aa3660046117df565b610e86565b3480156104bb57600080fd5b506101db6104ca36600461184e565b610eff565b3480156104db57600080fd5b506102896104ea366004611867565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561052157600080fd5b506102486105303660046118a0565b82516020818501810180516009825292820195820195909520919094528352600091825260408083209093528152205460ff1681565b34801561057257600080fd5b50610289610581366004611758565b610f4c565b34801561059257600080fd5b506101db6105a13660046118fe565b610ffe565b3480156105b257600080fd5b506101db6105c13660046117c2565b611064565b6006546001600160a01b031633146106255760405162461bcd60e51b815260206004820152601b60248201527f777261707065722f63616c6c65722d6e6f742d656e64706f696e74000000000060448201526064015b60405180910390fd5b61ffff8616600090815260076020526040902080546106439061194c565b8514905061069d5760405162461bcd60e51b815260206004820152602160248201527f777261707065722f696e76616c69642d7372632d73656e6465722d6c656e67746044820152600d60fb1b606482015260840161061c565b61ffff86166000908152600760205260409081902090516106be9190611986565b604051809103902085856040516106d69291906119fc565b60405180910390201461072b5760405162461bcd60e51b815260206004820152601a60248201527f777261707065722f696e76616c69642d7372632d73656e646572000000000000604482015260640161061c565b6009858560405161073d9291906119fc565b908152604080516020928190038301902061ffff8916600090815290835281812067ffffffffffffffff8716825290925290205460ff16156107b95760405162461bcd60e51b8152602060048201526015602482015274777261707065722f696e76616c69642d6e6f6e636560581b604482015260640161061c565b6001600986866040516107cd9291906119fc565b908152604080516020928190038301902061ffff8a16600090815290835281812067ffffffffffffffff881682529092528120805460ff191692151592909217909155808061081e85850186611a0c565b92509250925061082e83836110a2565b6040805161ffff808c1682527f0000000000000000000000000000000000000000000000000000000000000000166020820152908101829052606081018390526001600160a01b038416907ff540e2fcb9906dcfcfd5aea0f902da16ba5630b30f63f3acf6abe376f9e476a89060800160405180910390a2505050505050505050565b6060600380546108c09061194c565b80601f01602080910402602001604051908101604052809291908181526020018280546108ec9061194c565b80156109395780601f1061090e57610100808354040283529160200191610939565b820191906000526020600020905b81548152906001019060200180831161091c57829003601f168201915b5050505050905090565b61094b6110dc565b6006546040516307e0db1760e01b815261ffff831660048201526001600160a01b03909116906307e0db17906024015b600060405180830381600087803b15801561099557600080fd5b505af11580156109a9573d6000803e3d6000fd5b5050505050565b6000336109be818585611109565b60019150505b92915050565b6109d26110dc565b6006546040516310ddb13760e01b815261ffff831660048201526001600160a01b03909116906310ddb1379060240161097b565b600033610a1485828561111b565b610a1f858585611186565b506001949350505050565b610a326110dc565b6006546040516342d65a8d60e01b81526001600160a01b03909116906342d65a8d90610a6690869086908690600401611a6a565b600060405180830381600087803b158015610a8057600080fd5b505af1158015610a94573d6000803e3d6000fd5b50505050505050565b61ffff821660009081526007602052604081208054610abb9061194c565b905011610b0a5760405162461bcd60e51b815260206004820152601b60248201527f6272696467652f696e76616c69642d6473742d636861696e2d69640000000000604482015260640161061c565b3360009081526020819052604090205483811015610b6a5760405162461bcd60e51b815260206004820152601c60248201527f777261707065722f696e73756666696369656e742d62616c616e636500000000604482015260640161061c565b610b7433856111e5565b3360009081526020819052604090205484610b8f8284611aa7565b14610bd25760405162461bcd60e51b81526020600482015260136024820152721ddc985c1c195c8bd89d5c9b8b59985a5b1959606a1b604482015260640161061c565b6000612710600a5487610be59190611aba565b610bef9190611ad1565b90506000610bfd8288611aa7565b9050600860008154610c0e90611af3565b91905081905550600660009054906101000a90046001600160a01b03166001600160a01b031663c58031003488600760008b61ffff1661ffff1681526020019081526020016000208c86600854604051602001610c6d93929190611b0c565b6040516020818303038152906040523360008c6040518863ffffffff1660e01b8152600401610ca196959493929190611b2d565b6000604051808303818588803b158015610cba57600080fd5b505af1158015610cce573d6000803e3d6000fd5b50506008546040805161ffff7f0000000000000000000000000000000000000000000000000000000000000000811682528c1660208201529081019190915260608101859052608081018690526001600160a01b038c1693507fbd36451ab3b0e9fe414dea95544d2a3d68944d949c8af5b4a2bdfa0f269b02f0925060a001905060405180910390a25050505050505050565b610d696110dc565b610d73600061121b565b565b6060600480546108c09061194c565b610d8c6110dc565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f241827194635b544bceb965d0e124305c0968051403ae83cb99d1ef86bd65f5890600090a35050565b6000336109be818585611186565b60076020526000908152604090208054610e059061194c565b80601f0160208091040260200160405190810160405280929190818152602001828054610e319061194c565b8015610e7e5780601f10610e5357610100808354040283529160200191610e7e565b820191906000526020600020905b815481529060010190602001808311610e6157829003601f168201915b505050505081565b610e8e6110dc565b6006546040516332fb62e760e21b81526001600160a01b039091169063cbed8b9c90610ec69088908890889088908890600401611c17565b600060405180830381600087803b158015610ee057600080fd5b505af1158015610ef4573d6000803e3d6000fd5b505050505050505050565b610f076110dc565b600a80549082905560408051828152602081018490527f940334a9f5c76529ad9447ac490c2073b06d880209383a3d3e4b0ecab72a0d99910160405180910390a15050565b6000808585600854604051602001610f6693929190611b0c565b60408051601f198184030181529082905260065463040a7bb160e41b83529092506000916001600160a01b03909116906340a7bb1090610fb29088903090879087908b90600401611c50565b6040805180830381865afa158015610fce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff29190611ca4565b50979650505050505050565b6110066110dc565b61ffff821660009081526007602052604090206110238282611d18565b508161ffff167f35450a645fc8b8dcb5150ad335b4577eb182ab7e57024b8777eed53677a9fc9d8260405161105891906115ab565b60405180910390a25050565b61106c6110dc565b6001600160a01b03811661109657604051631e4fbdf760e01b81526000600482015260240161061c565b61109f8161121b565b50565b6001600160a01b0382166110cc5760405163ec442f0560e01b81526000600482015260240161061c565b6110d86000838361126d565b5050565b6005546001600160a01b03163314610d735760405163118cdaa760e01b815233600482015260240161061c565b6111168383836001611384565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611180578181101561117157828183604051637dc7a0d960e11b815260040161061c93929190611b0c565b61118084848484036000611384565b50505050565b6001600160a01b0383166111b057604051634b637e8f60e11b81526000600482015260240161061c565b6001600160a01b0382166111da5760405163ec442f0560e01b81526000600482015260240161061c565b61111683838361126d565b6001600160a01b03821661120f57604051634b637e8f60e11b81526000600482015260240161061c565b6110d88260008361126d565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831661129857806002600082825461128d9190611dd8565b909155506112f79050565b6001600160a01b038316600090815260208190526040902054818110156112d85783818360405163391434e360e21b815260040161061c93929190611b0c565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661131357600280548290039055611332565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161137791815260200190565b60405180910390a3505050565b6001600160a01b0384166113ae5760405163e602df0560e01b81526000600482015260240161061c565b6001600160a01b0383166113d857604051634a1406b160e11b81526000600482015260240161061c565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561118057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161144b91815260200190565b60405180910390a350505050565b803561ffff8116811461146b57600080fd5b919050565b60008083601f84011261148257600080fd5b50813567ffffffffffffffff81111561149a57600080fd5b6020830191508360208285010111156114b257600080fd5b9250929050565b803567ffffffffffffffff8116811461146b57600080fd5b600080600080600080608087890312156114ea57600080fd5b6114f387611459565b9550602087013567ffffffffffffffff8082111561151057600080fd5b61151c8a838b01611470565b909750955085915061153060408a016114b9565b9450606089013591508082111561154657600080fd5b5061155389828a01611470565b979a9699509497509295939492505050565b6000815180845260005b8181101561158b5760208185018101518683018201520161156f565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006115be6020830184611565565b9392505050565b6000602082840312156115d757600080fd5b6115be82611459565b6001600160a01b038116811461109f57600080fd5b6000806040838503121561160857600080fd5b8235611613816115e0565b946020939093013593505050565b60008060006060848603121561163657600080fd5b8335611641816115e0565b92506020840135611651816115e0565b929592945050506040919091013590565b60008060006040848603121561167757600080fd5b61168084611459565b9250602084013567ffffffffffffffff81111561169c57600080fd5b6116a886828701611470565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126116dc57600080fd5b813567ffffffffffffffff808211156116f7576116f76116b5565b604051601f8301601f19908116603f0116810190828211818310171561171f5761171f6116b5565b8160405283815286602085880101111561173857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561176e57600080fd5b8435611779816115e0565b93506020850135925061178e60408601611459565b9150606085013567ffffffffffffffff8111156117aa57600080fd5b6117b6878288016116cb565b91505092959194509250565b6000602082840312156117d457600080fd5b81356115be816115e0565b6000806000806000608086880312156117f757600080fd5b61180086611459565b945061180e60208701611459565b935060408601359250606086013567ffffffffffffffff81111561183157600080fd5b61183d88828901611470565b969995985093965092949392505050565b60006020828403121561186057600080fd5b5035919050565b6000806040838503121561187a57600080fd5b8235611885816115e0565b91506020830135611895816115e0565b809150509250929050565b6000806000606084860312156118b557600080fd5b833567ffffffffffffffff8111156118cc57600080fd5b6118d8868287016116cb565b9350506118e760208501611459565b91506118f5604085016114b9565b90509250925092565b6000806040838503121561191157600080fd5b61191a83611459565b9150602083013567ffffffffffffffff81111561193657600080fd5b611942858286016116cb565b9150509250929050565b600181811c9082168061196057607f821691505b60208210810361198057634e487b7160e01b600052602260045260246000fd5b50919050565b60008083546119948161194c565b600182811680156119ac57600181146119c1576119f0565b60ff19841687528215158302870194506119f0565b8760005260208060002060005b858110156119e75781548a8201529084019082016119ce565b50505082870194505b50929695505050505050565b8183823760009101908152919050565b600080600060608486031215611a2157600080fd5b8335611a2c816115e0565b95602085013595506040909401359392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201526000611a88604083018486611a41565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b818103818111156109c4576109c4611a91565b80820281158282048414176109c4576109c4611a91565b600082611aee57634e487b7160e01b600052601260045260246000fd5b500490565b600060018201611b0557611b05611a91565b5060010190565b6001600160a01b039390931683526020830191909152604082015260600190565b61ffff871681526000602060c0602084015260008854611b4c8161194c565b8060c087015260e0600180841660008114611b6e5760018114611b8a57611bba565b60ff19851660e08a015260e084151560051b8a01019550611bba565b8d600052602060002060005b85811015611bb15781548b8201860152908301908801611b96565b8a0160e0019650505b50505050508381036040850152611bd18189611565565b915050611be960608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a0840152611c0a8185611565565b9998505050505050505050565b600061ffff808816835280871660208401525084604083015260806060830152611c45608083018486611a41565b979650505050505050565b61ffff861681526001600160a01b038516602082015260a060408201819052600090611c7e90830186611565565b84151560608401528281036080840152611c988185611565565b98975050505050505050565b60008060408385031215611cb757600080fd5b505080516020909101519092909150565b601f821115611116576000816000526020600020601f850160051c81016020861015611cf15750805b601f850160051c820191505b81811015611d1057828155600101611cfd565b505050505050565b815167ffffffffffffffff811115611d3257611d326116b5565b611d4681611d40845461194c565b84611cc8565b602080601f831160018114611d7b5760008415611d635750858301515b600019600386901b1c1916600185901b178555611d10565b600085815260208120601f198616915b82811015611daa57888601518255948401946001909101908401611d8b565b5085821015611dc85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156109c4576109c4611a9156fea2646970667358221220d13310c58506c7ed13eae6f31575a5f497d9252ca9308e7ee9e6783395be7cb164736f6c63430008170033000000000000000000000000000000000000000000000000000000000000006a0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000025416476616e63656420556e6974656420436f6e74696e656e7420284176616c616e6368652900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044155434100000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101b65760003560e01c80638da5cb5b116100ec578063cbed8b9c1161008a578063e38c680211610064578063e38c680214610515578063e776ac5e14610566578063eb8d72b714610586578063f2fde38b146105a657600080fd5b8063cbed8b9c1461048f578063d26ed3e3146104af578063dd62ed3e146104cf57600080fd5b806395d89b41116100c657806395d89b411461041a578063a7170d481461042f578063a9059cbb1461044f578063ac4479441461046f57600080fd5b80638da5cb5b1461039f578063935ec990146103bd57806394544e641461040457600080fd5b8063313ce567116101595780636f0e7470116101335780636f0e74701461032b57806370a082311461033e578063715018a61461037457806374f079b81461038957600080fd5b8063313ce567146102b757806342d65a8d146102d35780635e280f11146102f357600080fd5b8063095ea7b311610195578063095ea7b31461022857806310ddb1371461025857806318160ddd1461027857806323b872dd1461029757600080fd5b80621d3567146101bb57806306fdde03146101dd57806307e0db1714610208575b600080fd5b3480156101c757600080fd5b506101db6101d63660046114d1565b6105c6565b005b3480156101e957600080fd5b506101f26108b1565b6040516101ff91906115ab565b60405180910390f35b34801561021457600080fd5b506101db6102233660046115c5565b610943565b34801561023457600080fd5b506102486102433660046115f5565b6109b0565b60405190151581526020016101ff565b34801561026457600080fd5b506101db6102733660046115c5565b6109ca565b34801561028457600080fd5b506002545b6040519081526020016101ff565b3480156102a357600080fd5b506102486102b2366004611621565b610a06565b3480156102c357600080fd5b50604051601281526020016101ff565b3480156102df57600080fd5b506101db6102ee366004611662565b610a2a565b3480156102ff57600080fd5b50600654610313906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b6101db610339366004611758565b610a9d565b34801561034a57600080fd5b506102896103593660046117c2565b6001600160a01b031660009081526020819052604090205490565b34801561038057600080fd5b506101db610d61565b34801561039557600080fd5b5061028960085481565b3480156103ab57600080fd5b506005546001600160a01b0316610313565b3480156103c957600080fd5b506103f17f000000000000000000000000000000000000000000000000000000000000006a81565b60405161ffff90911681526020016101ff565b34801561041057600080fd5b50610289600a5481565b34801561042657600080fd5b506101f2610d75565b34801561043b57600080fd5b506101db61044a3660046117c2565b610d84565b34801561045b57600080fd5b5061024861046a3660046115f5565b610dde565b34801561047b57600080fd5b506101f261048a3660046115c5565b610dec565b34801561049b57600080fd5b506101db6104aa3660046117df565b610e86565b3480156104bb57600080fd5b506101db6104ca36600461184e565b610eff565b3480156104db57600080fd5b506102896104ea366004611867565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561052157600080fd5b506102486105303660046118a0565b82516020818501810180516009825292820195820195909520919094528352600091825260408083209093528152205460ff1681565b34801561057257600080fd5b50610289610581366004611758565b610f4c565b34801561059257600080fd5b506101db6105a13660046118fe565b610ffe565b3480156105b257600080fd5b506101db6105c13660046117c2565b611064565b6006546001600160a01b031633146106255760405162461bcd60e51b815260206004820152601b60248201527f777261707065722f63616c6c65722d6e6f742d656e64706f696e74000000000060448201526064015b60405180910390fd5b61ffff8616600090815260076020526040902080546106439061194c565b8514905061069d5760405162461bcd60e51b815260206004820152602160248201527f777261707065722f696e76616c69642d7372632d73656e6465722d6c656e67746044820152600d60fb1b606482015260840161061c565b61ffff86166000908152600760205260409081902090516106be9190611986565b604051809103902085856040516106d69291906119fc565b60405180910390201461072b5760405162461bcd60e51b815260206004820152601a60248201527f777261707065722f696e76616c69642d7372632d73656e646572000000000000604482015260640161061c565b6009858560405161073d9291906119fc565b908152604080516020928190038301902061ffff8916600090815290835281812067ffffffffffffffff8716825290925290205460ff16156107b95760405162461bcd60e51b8152602060048201526015602482015274777261707065722f696e76616c69642d6e6f6e636560581b604482015260640161061c565b6001600986866040516107cd9291906119fc565b908152604080516020928190038301902061ffff8a16600090815290835281812067ffffffffffffffff881682529092528120805460ff191692151592909217909155808061081e85850186611a0c565b92509250925061082e83836110a2565b6040805161ffff808c1682527f000000000000000000000000000000000000000000000000000000000000006a166020820152908101829052606081018390526001600160a01b038416907ff540e2fcb9906dcfcfd5aea0f902da16ba5630b30f63f3acf6abe376f9e476a89060800160405180910390a2505050505050505050565b6060600380546108c09061194c565b80601f01602080910402602001604051908101604052809291908181526020018280546108ec9061194c565b80156109395780601f1061090e57610100808354040283529160200191610939565b820191906000526020600020905b81548152906001019060200180831161091c57829003601f168201915b5050505050905090565b61094b6110dc565b6006546040516307e0db1760e01b815261ffff831660048201526001600160a01b03909116906307e0db17906024015b600060405180830381600087803b15801561099557600080fd5b505af11580156109a9573d6000803e3d6000fd5b5050505050565b6000336109be818585611109565b60019150505b92915050565b6109d26110dc565b6006546040516310ddb13760e01b815261ffff831660048201526001600160a01b03909116906310ddb1379060240161097b565b600033610a1485828561111b565b610a1f858585611186565b506001949350505050565b610a326110dc565b6006546040516342d65a8d60e01b81526001600160a01b03909116906342d65a8d90610a6690869086908690600401611a6a565b600060405180830381600087803b158015610a8057600080fd5b505af1158015610a94573d6000803e3d6000fd5b50505050505050565b61ffff821660009081526007602052604081208054610abb9061194c565b905011610b0a5760405162461bcd60e51b815260206004820152601b60248201527f6272696467652f696e76616c69642d6473742d636861696e2d69640000000000604482015260640161061c565b3360009081526020819052604090205483811015610b6a5760405162461bcd60e51b815260206004820152601c60248201527f777261707065722f696e73756666696369656e742d62616c616e636500000000604482015260640161061c565b610b7433856111e5565b3360009081526020819052604090205484610b8f8284611aa7565b14610bd25760405162461bcd60e51b81526020600482015260136024820152721ddc985c1c195c8bd89d5c9b8b59985a5b1959606a1b604482015260640161061c565b6000612710600a5487610be59190611aba565b610bef9190611ad1565b90506000610bfd8288611aa7565b9050600860008154610c0e90611af3565b91905081905550600660009054906101000a90046001600160a01b03166001600160a01b031663c58031003488600760008b61ffff1661ffff1681526020019081526020016000208c86600854604051602001610c6d93929190611b0c565b6040516020818303038152906040523360008c6040518863ffffffff1660e01b8152600401610ca196959493929190611b2d565b6000604051808303818588803b158015610cba57600080fd5b505af1158015610cce573d6000803e3d6000fd5b50506008546040805161ffff7f000000000000000000000000000000000000000000000000000000000000006a811682528c1660208201529081019190915260608101859052608081018690526001600160a01b038c1693507fbd36451ab3b0e9fe414dea95544d2a3d68944d949c8af5b4a2bdfa0f269b02f0925060a001905060405180910390a25050505050505050565b610d696110dc565b610d73600061121b565b565b6060600480546108c09061194c565b610d8c6110dc565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f241827194635b544bceb965d0e124305c0968051403ae83cb99d1ef86bd65f5890600090a35050565b6000336109be818585611186565b60076020526000908152604090208054610e059061194c565b80601f0160208091040260200160405190810160405280929190818152602001828054610e319061194c565b8015610e7e5780601f10610e5357610100808354040283529160200191610e7e565b820191906000526020600020905b815481529060010190602001808311610e6157829003601f168201915b505050505081565b610e8e6110dc565b6006546040516332fb62e760e21b81526001600160a01b039091169063cbed8b9c90610ec69088908890889088908890600401611c17565b600060405180830381600087803b158015610ee057600080fd5b505af1158015610ef4573d6000803e3d6000fd5b505050505050505050565b610f076110dc565b600a80549082905560408051828152602081018490527f940334a9f5c76529ad9447ac490c2073b06d880209383a3d3e4b0ecab72a0d99910160405180910390a15050565b6000808585600854604051602001610f6693929190611b0c565b60408051601f198184030181529082905260065463040a7bb160e41b83529092506000916001600160a01b03909116906340a7bb1090610fb29088903090879087908b90600401611c50565b6040805180830381865afa158015610fce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff29190611ca4565b50979650505050505050565b6110066110dc565b61ffff821660009081526007602052604090206110238282611d18565b508161ffff167f35450a645fc8b8dcb5150ad335b4577eb182ab7e57024b8777eed53677a9fc9d8260405161105891906115ab565b60405180910390a25050565b61106c6110dc565b6001600160a01b03811661109657604051631e4fbdf760e01b81526000600482015260240161061c565b61109f8161121b565b50565b6001600160a01b0382166110cc5760405163ec442f0560e01b81526000600482015260240161061c565b6110d86000838361126d565b5050565b6005546001600160a01b03163314610d735760405163118cdaa760e01b815233600482015260240161061c565b6111168383836001611384565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611180578181101561117157828183604051637dc7a0d960e11b815260040161061c93929190611b0c565b61118084848484036000611384565b50505050565b6001600160a01b0383166111b057604051634b637e8f60e11b81526000600482015260240161061c565b6001600160a01b0382166111da5760405163ec442f0560e01b81526000600482015260240161061c565b61111683838361126d565b6001600160a01b03821661120f57604051634b637e8f60e11b81526000600482015260240161061c565b6110d88260008361126d565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831661129857806002600082825461128d9190611dd8565b909155506112f79050565b6001600160a01b038316600090815260208190526040902054818110156112d85783818360405163391434e360e21b815260040161061c93929190611b0c565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661131357600280548290039055611332565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161137791815260200190565b60405180910390a3505050565b6001600160a01b0384166113ae5760405163e602df0560e01b81526000600482015260240161061c565b6001600160a01b0383166113d857604051634a1406b160e11b81526000600482015260240161061c565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561118057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161144b91815260200190565b60405180910390a350505050565b803561ffff8116811461146b57600080fd5b919050565b60008083601f84011261148257600080fd5b50813567ffffffffffffffff81111561149a57600080fd5b6020830191508360208285010111156114b257600080fd5b9250929050565b803567ffffffffffffffff8116811461146b57600080fd5b600080600080600080608087890312156114ea57600080fd5b6114f387611459565b9550602087013567ffffffffffffffff8082111561151057600080fd5b61151c8a838b01611470565b909750955085915061153060408a016114b9565b9450606089013591508082111561154657600080fd5b5061155389828a01611470565b979a9699509497509295939492505050565b6000815180845260005b8181101561158b5760208185018101518683018201520161156f565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006115be6020830184611565565b9392505050565b6000602082840312156115d757600080fd5b6115be82611459565b6001600160a01b038116811461109f57600080fd5b6000806040838503121561160857600080fd5b8235611613816115e0565b946020939093013593505050565b60008060006060848603121561163657600080fd5b8335611641816115e0565b92506020840135611651816115e0565b929592945050506040919091013590565b60008060006040848603121561167757600080fd5b61168084611459565b9250602084013567ffffffffffffffff81111561169c57600080fd5b6116a886828701611470565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126116dc57600080fd5b813567ffffffffffffffff808211156116f7576116f76116b5565b604051601f8301601f19908116603f0116810190828211818310171561171f5761171f6116b5565b8160405283815286602085880101111561173857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561176e57600080fd5b8435611779816115e0565b93506020850135925061178e60408601611459565b9150606085013567ffffffffffffffff8111156117aa57600080fd5b6117b6878288016116cb565b91505092959194509250565b6000602082840312156117d457600080fd5b81356115be816115e0565b6000806000806000608086880312156117f757600080fd5b61180086611459565b945061180e60208701611459565b935060408601359250606086013567ffffffffffffffff81111561183157600080fd5b61183d88828901611470565b969995985093965092949392505050565b60006020828403121561186057600080fd5b5035919050565b6000806040838503121561187a57600080fd5b8235611885816115e0565b91506020830135611895816115e0565b809150509250929050565b6000806000606084860312156118b557600080fd5b833567ffffffffffffffff8111156118cc57600080fd5b6118d8868287016116cb565b9350506118e760208501611459565b91506118f5604085016114b9565b90509250925092565b6000806040838503121561191157600080fd5b61191a83611459565b9150602083013567ffffffffffffffff81111561193657600080fd5b611942858286016116cb565b9150509250929050565b600181811c9082168061196057607f821691505b60208210810361198057634e487b7160e01b600052602260045260246000fd5b50919050565b60008083546119948161194c565b600182811680156119ac57600181146119c1576119f0565b60ff19841687528215158302870194506119f0565b8760005260208060002060005b858110156119e75781548a8201529084019082016119ce565b50505082870194505b50929695505050505050565b8183823760009101908152919050565b600080600060608486031215611a2157600080fd5b8335611a2c816115e0565b95602085013595506040909401359392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201526000611a88604083018486611a41565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b818103818111156109c4576109c4611a91565b80820281158282048414176109c4576109c4611a91565b600082611aee57634e487b7160e01b600052601260045260246000fd5b500490565b600060018201611b0557611b05611a91565b5060010190565b6001600160a01b039390931683526020830191909152604082015260600190565b61ffff871681526000602060c0602084015260008854611b4c8161194c565b8060c087015260e0600180841660008114611b6e5760018114611b8a57611bba565b60ff19851660e08a015260e084151560051b8a01019550611bba565b8d600052602060002060005b85811015611bb15781548b8201860152908301908801611b96565b8a0160e0019650505b50505050508381036040850152611bd18189611565565b915050611be960608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a0840152611c0a8185611565565b9998505050505050505050565b600061ffff808816835280871660208401525084604083015260806060830152611c45608083018486611a41565b979650505050505050565b61ffff861681526001600160a01b038516602082015260a060408201819052600090611c7e90830186611565565b84151560608401528281036080840152611c988185611565565b98975050505050505050565b60008060408385031215611cb757600080fd5b505080516020909101519092909150565b601f821115611116576000816000526020600020601f850160051c81016020861015611cf15750805b601f850160051c820191505b81811015611d1057828155600101611cfd565b505050505050565b815167ffffffffffffffff811115611d3257611d326116b5565b611d4681611d40845461194c565b84611cc8565b602080601f831160018114611d7b5760008415611d635750858301515b600019600386901b1c1916600185901b178555611d10565b600085815260208120601f198616915b82811015611daa57888601518255948401946001909101908401611d8b565b5085821015611dc85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156109c4576109c4611a9156fea2646970667358221220d13310c58506c7ed13eae6f31575a5f497d9252ca9308e7ee9e6783395be7cb164736f6c63430008170033

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

000000000000000000000000000000000000000000000000000000000000006a0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000025416476616e63656420556e6974656420436f6e74696e656e7420284176616c616e6368652900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044155434100000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _lzChainId (uint16): 106
Arg [1] : _endpoint (address): 0x3c2269811836af69497E5F486A85D7316753cf62
Arg [2] : _name (string): Advanced United Continent (Avalanche)
Arg [3] : _symbol (string): AUCA

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000006a
Arg [1] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [5] : 416476616e63656420556e6974656420436f6e74696e656e7420284176616c61
Arg [6] : 6e63686529000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 4155434100000000000000000000000000000000000000000000000000000000


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