ETH Price: $3,711.15 (+3.26%)

Contract

0xf6FC753D5b74474f32D0aB3DBB6CAaF982A0909b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Send From209848832024-10-17 11:07:2344 days ago1729163243IN
0xf6FC753D...982A0909b
0.001 ETH0.0047513216.57079817
Send From208822332024-10-03 3:14:4758 days ago1727925287IN
0xf6FC753D...982A0909b
0.001 ETH0.001673355.93537291
Send From208769422024-10-02 9:33:1159 days ago1727861591IN
0xf6FC753D...982A0909b
0.001 ETH0.001969466.98568878
Send From208002532024-09-21 16:49:5970 days ago1726937399IN
0xf6FC753D...982A0909b
0.001 ETH0.0035970612.87402083
Send From208002312024-09-21 16:45:3570 days ago1726937135IN
0xf6FC753D...982A0909b
0.001 ETH0.0037299713.3508469
VIEW ADVANCED FILTER

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
209848832024-10-17 11:07:2344 days ago1729163243
0xf6FC753D...982A0909b
0.001 ETH
208822332024-10-03 3:14:4758 days ago1727925287
0xf6FC753D...982A0909b
0.001 ETH
208769422024-10-02 9:33:1159 days ago1727861591
0xf6FC753D...982A0909b
0.001 ETH
208002532024-09-21 16:49:5970 days ago1726937399
0xf6FC753D...982A0909b
0.001 ETH
208002312024-09-21 16:45:3570 days ago1726937135
0xf6FC753D...982A0909b
0.001 ETH
204574972024-08-04 20:11:23118 days ago1722802283
0xf6FC753D...982A0909b
0.0006 ETH
204513702024-08-03 23:42:11118 days ago1722728531
0xf6FC753D...982A0909b
0.0005 ETH
204426412024-08-02 18:26:47120 days ago1722623207
0xf6FC753D...982A0909b
0.0005 ETH
204386812024-08-02 5:09:47120 days ago1722575387
0xf6FC753D...982A0909b
0.0004 ETH
204319162024-08-01 6:30:23121 days ago1722493823
0xf6FC753D...982A0909b
0.00045 ETH
204303352024-08-01 1:12:35121 days ago1722474755
0xf6FC753D...982A0909b
0.00039849 ETH
204262862024-07-31 11:37:59122 days ago1722425879
0xf6FC753D...982A0909b
0.0005 ETH
203964062024-07-27 7:31:59126 days ago1722065519
0xf6FC753D...982A0909b
0.0004 ETH
203953022024-07-27 3:49:11126 days ago1722052151
0xf6FC753D...982A0909b
0.0004 ETH
203879302024-07-26 3:07:59127 days ago1721963279
0xf6FC753D...982A0909b
0.0004 ETH
203831602024-07-25 11:07:11128 days ago1721905631
0xf6FC753D...982A0909b
0.0004 ETH
203808432024-07-25 3:21:59128 days ago1721877719
0xf6FC753D...982A0909b
0.001 ETH
203754022024-07-24 9:07:35129 days ago1721812055
0xf6FC753D...982A0909b
0.0004 ETH
203619012024-07-22 11:53:59131 days ago1721649239
0xf6FC753D...982A0909b
0.001 ETH
203472172024-07-20 10:42:59133 days ago1721472179
0xf6FC753D...982A0909b
0.0004 ETH
203372302024-07-19 1:16:23134 days ago1721351783
0xf6FC753D...982A0909b
0.0005 ETH
203315002024-07-18 6:04:35135 days ago1721282675
0xf6FC753D...982A0909b
0.001 ETH
203239572024-07-17 4:48:23136 days ago1721191703
0xf6FC753D...982A0909b
0.0004 ETH
203222462024-07-16 23:05:11136 days ago1721171111
0xf6FC753D...982A0909b
0.0004 ETH
203197902024-07-16 14:52:47137 days ago1721141567
0xf6FC753D...982A0909b
0.0004 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ElsProxyBasedOFT

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 120 runs

Other Settings:
london EvmVersion
File 1 of 18 : ElsProxyBasedOFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../registry/RegistryClient.sol";
import "../ethlasApp/IEthlasFees.sol";
import "../token/oft/OFTCore.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/**
 * @dev Based on LayerZero OmnichainFungibleToken
 *
 * 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 ElsProxyBasedOFT is OFTCore, RegistryClient {
    using SafeERC20 for IERC20;
    IERC20 public immutable token;
    address public ethlasWallet;
    string public ethlasFeesId;

    constructor(
        address _regAddr,
        address _ethlasWallet,
        string memory _ethlasFeesId,
        address _lzEndpoint,
        address _proxyToken
    ) OFTCore(_lzEndpoint) {
        setAddr(_regAddr);
        ethlasWallet = _ethlasWallet;
        ethlasFeesId = _ethlasFeesId;
        token = IERC20(_proxyToken);
    }

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

    function _debitFrom(
        address _from,
        uint16,
        bytes memory,
        uint256 _amount
    ) internal virtual override {
        require(_from == _msgSender(), "Owner is not send caller");
        token.safeTransferFrom(_from, address(this), _amount);
    }

    function _creditTo(
        uint16,
        address _toAddress,
        uint256 _amount
    ) internal virtual override {
        token.safeTransfer(_toAddress, _amount);
    }

    function sendFrom(
        address _from,
        uint16 _dstChainId,
        bytes memory _toAddress,
        uint256 _amount,
        address payable _refundAddress,
        address _zroPaymentAddress,
        bytes memory _adapterParams
    ) public payable virtual override {
        require(_refundAddress == ethlasWallet, "refund must be ethlas wallet");

        (uint256 nativeFee, ) = estimateSendFee(
            _dstChainId,
            _toAddress,
            _amount,
            false,
            _adapterParams
        );

        address eFeesAddr = lookupContractAddr(ethlasFeesId);
        require(eFeesAddr != address(0), "fees address not found");

        IEthlasFees eFees = IEthlasFees(eFeesAddr);

        uint256 ethlasFee = eFees.getFee(_dstChainId, _amount, nativeFee);
        uint256 pSlip = eFees.percentSlip();

        require(msg.value >= nativeFee, "Insufficient fee amount sent");
        uint256 eFeeShare = msg.value - nativeFee;

        if (eFeeShare < ethlasFee) {
            uint256 percentUnder = 100 - (100 * eFeeShare) / ethlasFee;
            require(percentUnder <= pSlip, "insufficlient ethlas fee amount");
        }

        super.sendFrom(
            _from,
            _dstChainId,
            _toAddress,
            _amount,
            _refundAddress,
            _zroPaymentAddress,
            _adapterParams
        );
    }
}

File 2 of 18 : RegistryClient.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";

interface IRegistry {
    function getAddr(string memory id) external view returns (address);

    function updateAddr(string memory id, address addr) external;
}

/**
 * @dev used to look up other Ethlas contract addresses by name from Ethlas contract registry
 */
contract RegistryClient is Ownable {
    address public registryAddr;

    function setAddr(address addr) internal {
        registryAddr = addr;
    }

    function updateAddr(address addr) external onlyOwner {
        registryAddr = addr;
    }

    function lookupContractAddr(string memory contractName) internal view returns (address) {
        require(registryAddr != address(0), "registry address not initialized");
        IRegistry reg = IRegistry(registryAddr);
        return reg.getAddr(contractName);
    }
}

File 3 of 18 : OFTCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../lzApp/NonblockingLzApp.sol";
import "./IOFTCore.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract OFTCore is NonblockingLzApp, ERC165, IOFTCore {
    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 memory _toAddress, uint _amount, bool _useZro, bytes memory _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) {
        // mock the payload for send()
        bytes memory payload = abi.encode(_toAddress, _amount);
        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams);
    }

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

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // decode and load the toAddress
        (bytes memory toAddressBytes, uint amount) = abi.decode(_payload, (bytes, uint));
        address toAddress;
        assembly {
            toAddress := mload(add(toAddressBytes, 20))
        }

        _creditTo(_srcChainId, toAddress, amount);

        emit ReceiveFromChain(_srcChainId, _srcAddress, toAddress, amount, _nonce);
    }

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

        bytes memory payload = abi.encode(_toAddress, _amount);
        _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParams);

        uint64 nonce = lzEndpoint.getOutboundNonce(_dstChainId, address(this));
        emit SendToChain(_from, _dstChainId, _toAddress, _amount, nonce);
    }

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

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

File 4 of 18 : IOFTCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @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 Emitted when `_amount` tokens are moved from the `_sender` to (`_dstChainId`, `_toAddress`)
     * `_nonce` is the outbound nonce
     */
    event SendToChain(address indexed _sender, uint16 indexed _dstChainId, bytes indexed _toAddress, uint _amount, uint64 _nonce);

    /**
     * @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, bytes indexed _srcAddress, address indexed _toAddress, uint _amount, uint64 _nonce);
}

File 5 of 18 : NonblockingLzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LzApp.sol";

/*
 * 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 {
    constructor(address _endpoint) LzApp(_endpoint) {}

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

    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload);

    // overriding the virtual function in LzReceiver
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // try-catch all errors/exceptions
        try this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload) {
            // do nothing
        } catch {
            // error / exception
            failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload);
            emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload);
        }
    }

    function nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _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 memory _srcAddress, uint64 _nonce, bytes memory _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);
    }
}

File 6 of 18 : LzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/ILayerZeroReceiver.sol";
import "../interfaces/ILayerZeroUserApplicationConfig.sol";
import "../interfaces/ILayerZeroEndpoint.sol";

/*
 * a generic LzReceiver implementation
 */
abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {
    ILayerZeroEndpoint public immutable lzEndpoint;

    mapping(uint16 => bytes) public trustedRemoteLookup;

    event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress);

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

    function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _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 && 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) internal virtual {
        bytes memory trustedRemote = trustedRemoteLookup[_dstChainId];
        require(trustedRemote.length != 0, "LzApp: destination chain is not a trusted source");
        lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

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

    // allow owner to set it multiple times.
    function setTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external onlyOwner {
        trustedRemoteLookup[_srcChainId] = _srcAddress;
        emit SetTrustedRemote(_srcChainId, _srcAddress);
    }

    //--------------------------- VIEW FUNCTION ----------------------------------------

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

File 7 of 18 : ILayerZeroUserApplicationConfig.sol
// 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 8 of 18 : ILayerZeroReceiver.sol
// 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 9 of 18 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

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 10 of 18 : IEthlasFees.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IEthlasFees {
    function getFee(
        uint16 _dstChainId,
        uint256 _amount,
        uint256 _estimatedFee
    ) external view returns (uint256);

    function percentSlip() external returns (uint256);
}

File 11 of 18 : IERC165.sol
// 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 12 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @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 13 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 16 of 18 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

File 17 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 18 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. 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 {
        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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_regAddr","type":"address"},{"internalType":"address","name":"_ethlasWallet","type":"address"},{"internalType":"string","name":"_ethlasFeesId","type":"string"},{"internalType":"address","name":"_lzEndpoint","type":"address"},{"internalType":"address","name":"_proxyToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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"}],"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":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":true,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"ethlasFeesId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethlasWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"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":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","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":[{"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":[],"name":"registryAddr","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":"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":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"setTrustedRemote","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":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"address","name":"addr","type":"address"}],"name":"updateAddr","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b5060405162002ac238038062002ac283398101604081905262000034916200013c565b8180806200004233620000b9565b6001600160a01b03166080525062000078905085600380546001600160a01b0319166001600160a01b0392909216919091179055565b600480546001600160a01b0319166001600160a01b0386161790556005620000a18482620002eb565b506001600160a01b031660a05250620003b792505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200012157600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080600060a086880312156200015557600080fd5b620001608662000109565b945060206200017181880162000109565b60408801519095506001600160401b03808211156200018f57600080fd5b818901915089601f830112620001a457600080fd5b815181811115620001b957620001b962000126565b604051601f8201601f19908116603f01168101908382118183101715620001e457620001e462000126565b816040528281528c86848701011115620001fd57600080fd5b600093505b8284101562000221578484018601518185018701529285019262000202565b6000868483010152809850505050505050620002406060870162000109565b9150620002506080870162000109565b90509295509295909350565b600181811c908216806200027157607f821691505b6020821081036200029257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002e657600081815260208120601f850160051c81016020861015620002c15750805b601f850160051c820191505b81811015620002e257828155600101620002cd565b5050505b505050565b81516001600160401b0381111562000307576200030762000126565b6200031f816200031884546200025c565b8462000298565b602080601f8311600181146200035757600084156200033e5750858301515b600019600386901b1c1916600185901b178555620002e2565b600085815260208120601f198616915b82811015620003885788860151825594840194600190910190840162000367565b5085821015620003a75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05161268a62000438600039600081816104d101528181610e7801528181610eed0152818161175c01526117e801526000818161040a015281816104f6015281816106f20152818161077401528181610878015281816109ef01528181610f920152818161126b01528181611668015261192e015261268a6000f3fe6080604052600436106101555760003560e01c80636c42ee61116100c1578063b353aaa71161007a578063b353aaa7146103f8578063cbed8b9c1461042c578063d1deba1f1461044c578063eb8d72b71461045f578063f2fde38b1461047f578063f5ecbdbc1461049f578063fc0c546a146104bf57600080fd5b80636c42ee6114610350578063715018a6146103705780637533d788146103855780638da5cb5b146103a55780639358928b146103c3578063a17296e8146103d857600080fd5b80633d8b38f6116101135780633d8b38f61461024857806342d65a8d14610268578063519056361461028857806351da2eaa1461029b5780635b8c41e6146102d357806366ad5c8a1461033057600080fd5b80621d35671461015a57806301ffc9a71461017c57806307e0db17146101b157806310ddb137146101d15780631f7be697146101f15780632a205e3d14610213575b600080fd5b34801561016657600080fd5b5061017a610175366004611d2b565b6104f3565b005b34801561018857600080fd5b5061019c610197366004611db3565b61069a565b60405190151581526020015b60405180910390f35b3480156101bd57600080fd5b5061017a6101cc366004611ddd565b6106d1565b3480156101dd57600080fd5b5061017a6101ec366004611ddd565b610753565b3480156101fd57600080fd5b506102066107ab565b6040516101a89190611e48565b34801561021f57600080fd5b5061023361022e366004611e69565b610839565b604080519283526020830191909152016101a8565b34801561025457600080fd5b5061019c610263366004611f43565b610904565b34801561027457600080fd5b5061017a610283366004611f43565b6109d0565b61017a610296366004611faa565b610a5f565b3480156102a757600080fd5b506003546102bb906001600160a01b031681565b6040516001600160a01b0390911681526020016101a8565b3480156102df57600080fd5b506103226102ee366004612063565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b6040519081526020016101a8565b34801561033c57600080fd5b5061017a61034b366004611d2b565b610d99565b34801561035c57600080fd5b5061017a61036b3660046120c4565b610e09565b34801561037c57600080fd5b5061017a610e33565b34801561039157600080fd5b506102066103a0366004611ddd565b610e47565b3480156103b157600080fd5b506000546001600160a01b03166102bb565b3480156103cf57600080fd5b50610322610e60565b3480156103e457600080fd5b506004546102bb906001600160a01b031681565b34801561040457600080fd5b506102bb7f000000000000000000000000000000000000000000000000000000000000000081565b34801561043857600080fd5b5061017a6104473660046120e1565b610f73565b61017a61045a366004611d2b565b611008565b34801561046b57600080fd5b5061017a61047a366004611f43565b61115a565b34801561048b57600080fd5b5061017a61049a3660046120c4565b6111c1565b3480156104ab57600080fd5b506102066104ba36600461214f565b61123a565b3480156104cb57600080fd5b506102bb7f000000000000000000000000000000000000000000000000000000000000000081565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146105705760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff84166000908152600160205260408120805461058e9061219c565b80601f01602080910402602001604051908101604052809291908181526020018280546105ba9061219c565b80156106075780601f106105dc57610100808354040283529160200191610607565b820191906000526020600020905b8154815290600101906020018083116105ea57829003601f168201915b505050505090508051845114801561062c575080805190602001208480519060200120145b6106875760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610567565b610693858585856112ed565b5050505050565b60006001600160e01b031982166301d1d13560e71b14806106cb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106d96113de565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b15801561073f57600080fd5b505af1158015610693573d6000803e3d6000fd5b61075b6113de565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb13790602401610725565b600580546107b89061219c565b80601f01602080910402602001604051908101604052809291908181526020018280546107e49061219c565b80156108315780601f1061080657610100808354040283529160200191610831565b820191906000526020600020905b81548152906001019060200180831161081457829003601f168201915b505050505081565b600080600086866040516020016108519291906121d6565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb10906108b5908b90309086908b908b906004016121f8565b6040805180830381865afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f5919061224c565b92509250509550959350505050565b61ffff8316600090815260016020526040812080548291906109259061219c565b80601f01602080910402602001604051908101604052809291908181526020018280546109519061219c565b801561099e5780601f106109735761010080835404028352916020019161099e565b820191906000526020600020905b81548152906001019060200180831161098157829003601f168201915b5050505050905083836040516109b5929190612270565b60405180910390208180519060200120149150509392505050565b6109d86113de565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d90610a28908690869086906004016122a9565b600060405180830381600087803b158015610a4257600080fd5b505af1158015610a56573d6000803e3d6000fd5b50505050505050565b6004546001600160a01b03848116911614610abc5760405162461bcd60e51b815260206004820152601c60248201527f726566756e64206d757374206265206574686c61732077616c6c6574000000006044820152606401610567565b6000610acc878787600086610839565b5090506000610b6460058054610ae19061219c565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0d9061219c565b8015610b5a5780601f10610b2f57610100808354040283529160200191610b5a565b820191906000526020600020905b815481529060010190602001808311610b3d57829003601f168201915b5050505050611438565b90506001600160a01b038116610bb55760405162461bcd60e51b81526020600482015260166024820152751999595cc81859191c995cdcc81b9bdd08199bdd5b9960521b6044820152606401610567565b604051635007989160e01b815261ffff89166004820152602481018790526044810183905281906000906001600160a01b03831690635007989190606401602060405180830381865afa158015610c10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3491906122c7565b90506000826001600160a01b03166307de9b106040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9c91906122c7565b905084341015610cee5760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742066656520616d6f756e742073656e74000000006044820152606401610567565b6000610cfa86346122f6565b905082811015610d7b57600083610d12836064612309565b610d1c9190612320565b610d279060646122f6565b905082811115610d795760405162461bcd60e51b815260206004820152601f60248201527f696e7375666669636c69656e74206574686c61732066656520616d6f756e74006044820152606401610567565b505b610d8a8d8d8d8d8d8d8d61150d565b50505050505050505050505050565b333014610df75760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610567565b610e038484848461151c565b50505050565b610e116113de565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b610e3b6113de565b610e4560006115b7565b565b600160205260009081526040902080546107b89061219c565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eeb91906122c7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d91906122c7565b03905090565b610f7b6113de565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c90610fcf9088908890889088908890600401612342565b600060405180830381600087803b158015610fe957600080fd5b505af1158015610ffd573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051611029908690612370565b90815260408051602092819003830190206001600160401b038616600090815292529020549050806110a95760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610567565b8151602083012081146111085760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610567565b61ffff85166000908152600260205260408082209051611129908790612370565b90815260408051602092819003830190206001600160401b038716600090815292529020556106938585858561151c565b6111626113de565b61ffff831660009081526001602052604090206111808284836123da565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516111b4939291906122a9565b60405180910390a1505050565b6111c96113de565b6001600160a01b03811661122e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610567565b611237816115b7565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc90608401600060405180830381865afa1580156112ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e291908101906124de565b90505b949350505050565b604051633356ae4560e11b815230906366ad5c8a90611316908790879087908790600401612512565b600060405180830381600087803b15801561133057600080fd5b505af1925050508015611341575060015b610e03578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516113769190612370565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906113d1908690869086908690612512565b60405180910390a1610e03565b6000546001600160a01b03163314610e455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610567565b6003546000906001600160a01b03166114935760405162461bcd60e51b815260206004820181905260248201527f72656769737472792061646472657373206e6f7420696e697469616c697a65646044820152606401610567565b60035460405163d502db9760e01b81526001600160a01b0390911690819063d502db97906114c5908690600401611e48565b602060405180830381865afa1580156114e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115069190612550565b9392505050565b610a5687878787878787611607565b60008082806020019051810190611533919061256d565b6014820151919350915061154887828461174f565b806001600160a01b0316866040516115609190612370565b604080519182900382208583526001600160401b03891660208401529161ffff8b16917f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba910160405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61161387878787611788565b600085856040516020016116289291906121d6565b60405160208183030381529060405290506116468782868686611810565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637a14574890604401602060405180830381865afa1580156116b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116db91906125b3565b9050866040516116eb9190612370565b604080519182900382208883526001600160401b03841660208401529161ffff8b16916001600160a01b038d16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4505050505050505050565b6117836001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683836119a9565b505050565b6001600160a01b03841633146117db5760405162461bcd60e51b815260206004820152601860248201527727bbb732b91034b9903737ba1039b2b7321031b0b63632b960411b6044820152606401610567565b610e036001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016853084611a0c565b61ffff85166000908152600160205260408120805461182e9061219c565b80601f016020809104026020016040519081016040528092919081815260200182805461185a9061219c565b80156118a75780601f1061187c576101008083540402835291602001916118a7565b820191906000526020600020905b81548152906001019060200180831161188a57829003601f168201915b5050505050905080516000036119185760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610567565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c580310090349061196f908a9086908b908b908b908b906004016125d0565b6000604051808303818588803b15801561198857600080fd5b505af115801561199c573d6000803e3d6000fd5b5050505050505050505050565b6040516001600160a01b03831660248201526044810182905261178390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a44565b6040516001600160a01b0380851660248301528316604482015260648101829052610e039085906323b872dd60e01b906084016119d5565b6000611a99826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b199092919063ffffffff16565b9050805160001480611aba575080806020019051810190611aba9190612637565b6117835760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610567565b60606112e5848460008585600080866001600160a01b03168587604051611b409190612370565b60006040518083038185875af1925050503d8060008114611b7d576040519150601f19603f3d011682016040523d82523d6000602084013e611b82565b606091505b5091509150611b9387838387611b9e565b979650505050505050565b60608315611c0d578251600003611c06576001600160a01b0385163b611c065760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610567565b50816112e5565b6112e58383815115611c225781518083602001fd5b8060405162461bcd60e51b81526004016105679190611e48565b803561ffff81168114611c4e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611c9157611c91611c53565b604052919050565b60006001600160401b03821115611cb257611cb2611c53565b50601f01601f191660200190565b600082601f830112611cd157600080fd5b8135611ce4611cdf82611c99565b611c69565b818152846020838601011115611cf957600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160401b038116811461123757600080fd5b60008060008060808587031215611d4157600080fd5b611d4a85611c3c565b935060208501356001600160401b0380821115611d6657600080fd5b611d7288838901611cc0565b945060408701359150611d8482611d16565b90925060608601359080821115611d9a57600080fd5b50611da787828801611cc0565b91505092959194509250565b600060208284031215611dc557600080fd5b81356001600160e01b03198116811461150657600080fd5b600060208284031215611def57600080fd5b61150682611c3c565b60005b83811015611e13578181015183820152602001611dfb565b50506000910152565b60008151808452611e34816020860160208601611df8565b601f01601f19169290920160200192915050565b6020815260006115066020830184611e1c565b801515811461123757600080fd5b600080600080600060a08688031215611e8157600080fd5b611e8a86611c3c565b945060208601356001600160401b0380821115611ea657600080fd5b611eb289838a01611cc0565b95506040880135945060608801359150611ecb82611e5b565b90925060808701359080821115611ee157600080fd5b50611eee88828901611cc0565b9150509295509295909350565b60008083601f840112611f0d57600080fd5b5081356001600160401b03811115611f2457600080fd5b602083019150836020828501011115611f3c57600080fd5b9250929050565b600080600060408486031215611f5857600080fd5b611f6184611c3c565b925060208401356001600160401b03811115611f7c57600080fd5b611f8886828701611efb565b9497909650939450505050565b6001600160a01b038116811461123757600080fd5b600080600080600080600060e0888a031215611fc557600080fd5b8735611fd081611f95565b9650611fde60208901611c3c565b955060408801356001600160401b0380821115611ffa57600080fd5b6120068b838c01611cc0565b965060608a0135955060808a0135915061201f82611f95565b90935060a08901359061203182611f95565b90925060c0890135908082111561204757600080fd5b506120548a828b01611cc0565b91505092959891949750929550565b60008060006060848603121561207857600080fd5b61208184611c3c565b925060208401356001600160401b0381111561209c57600080fd5b6120a886828701611cc0565b92505060408401356120b981611d16565b809150509250925092565b6000602082840312156120d657600080fd5b813561150681611f95565b6000806000806000608086880312156120f957600080fd5b61210286611c3c565b945061211060208701611c3c565b93506040860135925060608601356001600160401b0381111561213257600080fd5b61213e88828901611efb565b969995985093965092949392505050565b6000806000806080858703121561216557600080fd5b61216e85611c3c565b935061217c60208601611c3c565b9250604085013561218c81611f95565b9396929550929360600135925050565b600181811c908216806121b057607f821691505b6020821081036121d057634e487b7160e01b600052602260045260246000fd5b50919050565b6040815260006121e96040830185611e1c565b90508260208301529392505050565b61ffff861681526001600160a01b038516602082015260a06040820181905260009061222690830186611e1c565b841515606084015282810360808401526122408185611e1c565b98975050505050505050565b6000806040838503121561225f57600080fd5b505080516020909101519092909150565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff841681526040602082015260006112e2604083018486612280565b6000602082840312156122d957600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106cb576106cb6122e0565b80820281158282048414176106cb576106cb6122e0565b60008261233d57634e487b7160e01b600052601260045260246000fd5b500490565b600061ffff808816835280871660208401525084604083015260806060830152611b93608083018486612280565b60008251612382818460208701611df8565b9190910192915050565b601f82111561178357600081815260208120601f850160051c810160208610156123b35750805b601f850160051c820191505b818110156123d2578281556001016123bf565b505050505050565b6001600160401b038311156123f1576123f1611c53565b612405836123ff835461219c565b8361238c565b6000601f84116001811461243957600085156124215750838201355b600019600387901b1c1916600186901b178355610693565b600083815260209020601f19861690835b8281101561246a578685013582556020948501946001909201910161244a565b50868210156124875760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600082601f8301126124aa57600080fd5b81516124b8611cdf82611c99565b8181528460208386010111156124cd57600080fd5b6112e5826020830160208701611df8565b6000602082840312156124f057600080fd5b81516001600160401b0381111561250657600080fd5b6112e584828501612499565b61ffff8516815260806020820152600061252f6080830186611e1c565b6001600160401b03851660408401528281036060840152611b938185611e1c565b60006020828403121561256257600080fd5b815161150681611f95565b6000806040838503121561258057600080fd5b82516001600160401b0381111561259657600080fd5b6125a285828601612499565b925050602083015190509250929050565b6000602082840312156125c557600080fd5b815161150681611d16565b61ffff8716815260c0602082015260006125ed60c0830188611e1c565b82810360408401526125ff8188611e1c565b6001600160a01b0387811660608601528616608085015283810360a0850152905061262a8185611e1c565b9998505050505050505050565b60006020828403121561264957600080fd5b815161150681611e5b56fea264697066735822122092b3ff03c4edaf4ef1fe985c3bc390e5e3b59ab5f393df5353e5c792422a568864736f6c63430008140033000000000000000000000000841dee9e35f30cfba5e02ecd6662c099c614f4eb000000000000000000000000564a18b95b0eddf323bd9f404835d175f74976af00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675000000000000000000000000eb575c45004bd7b61c6a8d3446a62a05a6ce18d8000000000000000000000000000000000000000000000000000000000000000a4574686c61734665657300000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101555760003560e01c80636c42ee61116100c1578063b353aaa71161007a578063b353aaa7146103f8578063cbed8b9c1461042c578063d1deba1f1461044c578063eb8d72b71461045f578063f2fde38b1461047f578063f5ecbdbc1461049f578063fc0c546a146104bf57600080fd5b80636c42ee6114610350578063715018a6146103705780637533d788146103855780638da5cb5b146103a55780639358928b146103c3578063a17296e8146103d857600080fd5b80633d8b38f6116101135780633d8b38f61461024857806342d65a8d14610268578063519056361461028857806351da2eaa1461029b5780635b8c41e6146102d357806366ad5c8a1461033057600080fd5b80621d35671461015a57806301ffc9a71461017c57806307e0db17146101b157806310ddb137146101d15780631f7be697146101f15780632a205e3d14610213575b600080fd5b34801561016657600080fd5b5061017a610175366004611d2b565b6104f3565b005b34801561018857600080fd5b5061019c610197366004611db3565b61069a565b60405190151581526020015b60405180910390f35b3480156101bd57600080fd5b5061017a6101cc366004611ddd565b6106d1565b3480156101dd57600080fd5b5061017a6101ec366004611ddd565b610753565b3480156101fd57600080fd5b506102066107ab565b6040516101a89190611e48565b34801561021f57600080fd5b5061023361022e366004611e69565b610839565b604080519283526020830191909152016101a8565b34801561025457600080fd5b5061019c610263366004611f43565b610904565b34801561027457600080fd5b5061017a610283366004611f43565b6109d0565b61017a610296366004611faa565b610a5f565b3480156102a757600080fd5b506003546102bb906001600160a01b031681565b6040516001600160a01b0390911681526020016101a8565b3480156102df57600080fd5b506103226102ee366004612063565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b6040519081526020016101a8565b34801561033c57600080fd5b5061017a61034b366004611d2b565b610d99565b34801561035c57600080fd5b5061017a61036b3660046120c4565b610e09565b34801561037c57600080fd5b5061017a610e33565b34801561039157600080fd5b506102066103a0366004611ddd565b610e47565b3480156103b157600080fd5b506000546001600160a01b03166102bb565b3480156103cf57600080fd5b50610322610e60565b3480156103e457600080fd5b506004546102bb906001600160a01b031681565b34801561040457600080fd5b506102bb7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67581565b34801561043857600080fd5b5061017a6104473660046120e1565b610f73565b61017a61045a366004611d2b565b611008565b34801561046b57600080fd5b5061017a61047a366004611f43565b61115a565b34801561048b57600080fd5b5061017a61049a3660046120c4565b6111c1565b3480156104ab57600080fd5b506102066104ba36600461214f565b61123a565b3480156104cb57600080fd5b506102bb7f000000000000000000000000eb575c45004bd7b61c6a8d3446a62a05a6ce18d881565b337f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316146105705760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff84166000908152600160205260408120805461058e9061219c565b80601f01602080910402602001604051908101604052809291908181526020018280546105ba9061219c565b80156106075780601f106105dc57610100808354040283529160200191610607565b820191906000526020600020905b8154815290600101906020018083116105ea57829003601f168201915b505050505090508051845114801561062c575080805190602001208480519060200120145b6106875760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610567565b610693858585856112ed565b5050505050565b60006001600160e01b031982166301d1d13560e71b14806106cb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106d96113de565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316906307e0db17906024015b600060405180830381600087803b15801561073f57600080fd5b505af1158015610693573d6000803e3d6000fd5b61075b6113de565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316906310ddb13790602401610725565b600580546107b89061219c565b80601f01602080910402602001604051908101604052809291908181526020018280546107e49061219c565b80156108315780601f1061080657610100808354040283529160200191610831565b820191906000526020600020905b81548152906001019060200180831161081457829003601f168201915b505050505081565b600080600086866040516020016108519291906121d6565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906340a7bb10906108b5908b90309086908b908b906004016121f8565b6040805180830381865afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f5919061224c565b92509250509550959350505050565b61ffff8316600090815260016020526040812080548291906109259061219c565b80601f01602080910402602001604051908101604052809291908181526020018280546109519061219c565b801561099e5780601f106109735761010080835404028352916020019161099e565b820191906000526020600020905b81548152906001019060200180831161098157829003601f168201915b5050505050905083836040516109b5929190612270565b60405180910390208180519060200120149150509392505050565b6109d86113de565b6040516342d65a8d60e01b81526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906342d65a8d90610a28908690869086906004016122a9565b600060405180830381600087803b158015610a4257600080fd5b505af1158015610a56573d6000803e3d6000fd5b50505050505050565b6004546001600160a01b03848116911614610abc5760405162461bcd60e51b815260206004820152601c60248201527f726566756e64206d757374206265206574686c61732077616c6c6574000000006044820152606401610567565b6000610acc878787600086610839565b5090506000610b6460058054610ae19061219c565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0d9061219c565b8015610b5a5780601f10610b2f57610100808354040283529160200191610b5a565b820191906000526020600020905b815481529060010190602001808311610b3d57829003601f168201915b5050505050611438565b90506001600160a01b038116610bb55760405162461bcd60e51b81526020600482015260166024820152751999595cc81859191c995cdcc81b9bdd08199bdd5b9960521b6044820152606401610567565b604051635007989160e01b815261ffff89166004820152602481018790526044810183905281906000906001600160a01b03831690635007989190606401602060405180830381865afa158015610c10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3491906122c7565b90506000826001600160a01b03166307de9b106040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9c91906122c7565b905084341015610cee5760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742066656520616d6f756e742073656e74000000006044820152606401610567565b6000610cfa86346122f6565b905082811015610d7b57600083610d12836064612309565b610d1c9190612320565b610d279060646122f6565b905082811115610d795760405162461bcd60e51b815260206004820152601f60248201527f696e7375666669636c69656e74206574686c61732066656520616d6f756e74006044820152606401610567565b505b610d8a8d8d8d8d8d8d8d61150d565b50505050505050505050505050565b333014610df75760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610567565b610e038484848461151c565b50505050565b610e116113de565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b610e3b6113de565b610e4560006115b7565b565b600160205260009081526040902080546107b89061219c565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000eb575c45004bd7b61c6a8d3446a62a05a6ce18d86001600160a01b0316906370a0823190602401602060405180830381865afa158015610ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eeb91906122c7565b7f000000000000000000000000eb575c45004bd7b61c6a8d3446a62a05a6ce18d86001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d91906122c7565b03905090565b610f7b6113de565b6040516332fb62e760e21b81526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063cbed8b9c90610fcf9088908890889088908890600401612342565b600060405180830381600087803b158015610fe957600080fd5b505af1158015610ffd573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051611029908690612370565b90815260408051602092819003830190206001600160401b038616600090815292529020549050806110a95760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610567565b8151602083012081146111085760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610567565b61ffff85166000908152600260205260408082209051611129908790612370565b90815260408051602092819003830190206001600160401b038716600090815292529020556106938585858561151c565b6111626113de565b61ffff831660009081526001602052604090206111808284836123da565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516111b4939291906122a9565b60405180910390a1505050565b6111c96113de565b6001600160a01b03811661122e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610567565b611237816115b7565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03169063f5ecbdbc90608401600060405180830381865afa1580156112ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e291908101906124de565b90505b949350505050565b604051633356ae4560e11b815230906366ad5c8a90611316908790879087908790600401612512565b600060405180830381600087803b15801561133057600080fd5b505af1925050508015611341575060015b610e03578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516113769190612370565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906113d1908690869086908690612512565b60405180910390a1610e03565b6000546001600160a01b03163314610e455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610567565b6003546000906001600160a01b03166114935760405162461bcd60e51b815260206004820181905260248201527f72656769737472792061646472657373206e6f7420696e697469616c697a65646044820152606401610567565b60035460405163d502db9760e01b81526001600160a01b0390911690819063d502db97906114c5908690600401611e48565b602060405180830381865afa1580156114e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115069190612550565b9392505050565b610a5687878787878787611607565b60008082806020019051810190611533919061256d565b6014820151919350915061154887828461174f565b806001600160a01b0316866040516115609190612370565b604080519182900382208583526001600160401b03891660208401529161ffff8b16917f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba910160405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61161387878787611788565b600085856040516020016116289291906121d6565b60405160208183030381529060405290506116468782868686611810565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031690637a14574890604401602060405180830381865afa1580156116b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116db91906125b3565b9050866040516116eb9190612370565b604080519182900382208883526001600160401b03841660208401529161ffff8b16916001600160a01b038d16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4505050505050505050565b6117836001600160a01b037f000000000000000000000000eb575c45004bd7b61c6a8d3446a62a05a6ce18d81683836119a9565b505050565b6001600160a01b03841633146117db5760405162461bcd60e51b815260206004820152601860248201527727bbb732b91034b9903737ba1039b2b7321031b0b63632b960411b6044820152606401610567565b610e036001600160a01b037f000000000000000000000000eb575c45004bd7b61c6a8d3446a62a05a6ce18d816853084611a0c565b61ffff85166000908152600160205260408120805461182e9061219c565b80601f016020809104026020016040519081016040528092919081815260200182805461185a9061219c565b80156118a75780601f1061187c576101008083540402835291602001916118a7565b820191906000526020600020905b81548152906001019060200180831161188a57829003601f168201915b5050505050905080516000036119185760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610567565b60405162c5803160e81b81526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063c580310090349061196f908a9086908b908b908b908b906004016125d0565b6000604051808303818588803b15801561198857600080fd5b505af115801561199c573d6000803e3d6000fd5b5050505050505050505050565b6040516001600160a01b03831660248201526044810182905261178390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a44565b6040516001600160a01b0380851660248301528316604482015260648101829052610e039085906323b872dd60e01b906084016119d5565b6000611a99826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b199092919063ffffffff16565b9050805160001480611aba575080806020019051810190611aba9190612637565b6117835760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610567565b60606112e5848460008585600080866001600160a01b03168587604051611b409190612370565b60006040518083038185875af1925050503d8060008114611b7d576040519150601f19603f3d011682016040523d82523d6000602084013e611b82565b606091505b5091509150611b9387838387611b9e565b979650505050505050565b60608315611c0d578251600003611c06576001600160a01b0385163b611c065760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610567565b50816112e5565b6112e58383815115611c225781518083602001fd5b8060405162461bcd60e51b81526004016105679190611e48565b803561ffff81168114611c4e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611c9157611c91611c53565b604052919050565b60006001600160401b03821115611cb257611cb2611c53565b50601f01601f191660200190565b600082601f830112611cd157600080fd5b8135611ce4611cdf82611c99565b611c69565b818152846020838601011115611cf957600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160401b038116811461123757600080fd5b60008060008060808587031215611d4157600080fd5b611d4a85611c3c565b935060208501356001600160401b0380821115611d6657600080fd5b611d7288838901611cc0565b945060408701359150611d8482611d16565b90925060608601359080821115611d9a57600080fd5b50611da787828801611cc0565b91505092959194509250565b600060208284031215611dc557600080fd5b81356001600160e01b03198116811461150657600080fd5b600060208284031215611def57600080fd5b61150682611c3c565b60005b83811015611e13578181015183820152602001611dfb565b50506000910152565b60008151808452611e34816020860160208601611df8565b601f01601f19169290920160200192915050565b6020815260006115066020830184611e1c565b801515811461123757600080fd5b600080600080600060a08688031215611e8157600080fd5b611e8a86611c3c565b945060208601356001600160401b0380821115611ea657600080fd5b611eb289838a01611cc0565b95506040880135945060608801359150611ecb82611e5b565b90925060808701359080821115611ee157600080fd5b50611eee88828901611cc0565b9150509295509295909350565b60008083601f840112611f0d57600080fd5b5081356001600160401b03811115611f2457600080fd5b602083019150836020828501011115611f3c57600080fd5b9250929050565b600080600060408486031215611f5857600080fd5b611f6184611c3c565b925060208401356001600160401b03811115611f7c57600080fd5b611f8886828701611efb565b9497909650939450505050565b6001600160a01b038116811461123757600080fd5b600080600080600080600060e0888a031215611fc557600080fd5b8735611fd081611f95565b9650611fde60208901611c3c565b955060408801356001600160401b0380821115611ffa57600080fd5b6120068b838c01611cc0565b965060608a0135955060808a0135915061201f82611f95565b90935060a08901359061203182611f95565b90925060c0890135908082111561204757600080fd5b506120548a828b01611cc0565b91505092959891949750929550565b60008060006060848603121561207857600080fd5b61208184611c3c565b925060208401356001600160401b0381111561209c57600080fd5b6120a886828701611cc0565b92505060408401356120b981611d16565b809150509250925092565b6000602082840312156120d657600080fd5b813561150681611f95565b6000806000806000608086880312156120f957600080fd5b61210286611c3c565b945061211060208701611c3c565b93506040860135925060608601356001600160401b0381111561213257600080fd5b61213e88828901611efb565b969995985093965092949392505050565b6000806000806080858703121561216557600080fd5b61216e85611c3c565b935061217c60208601611c3c565b9250604085013561218c81611f95565b9396929550929360600135925050565b600181811c908216806121b057607f821691505b6020821081036121d057634e487b7160e01b600052602260045260246000fd5b50919050565b6040815260006121e96040830185611e1c565b90508260208301529392505050565b61ffff861681526001600160a01b038516602082015260a06040820181905260009061222690830186611e1c565b841515606084015282810360808401526122408185611e1c565b98975050505050505050565b6000806040838503121561225f57600080fd5b505080516020909101519092909150565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff841681526040602082015260006112e2604083018486612280565b6000602082840312156122d957600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156106cb576106cb6122e0565b80820281158282048414176106cb576106cb6122e0565b60008261233d57634e487b7160e01b600052601260045260246000fd5b500490565b600061ffff808816835280871660208401525084604083015260806060830152611b93608083018486612280565b60008251612382818460208701611df8565b9190910192915050565b601f82111561178357600081815260208120601f850160051c810160208610156123b35750805b601f850160051c820191505b818110156123d2578281556001016123bf565b505050505050565b6001600160401b038311156123f1576123f1611c53565b612405836123ff835461219c565b8361238c565b6000601f84116001811461243957600085156124215750838201355b600019600387901b1c1916600186901b178355610693565b600083815260209020601f19861690835b8281101561246a578685013582556020948501946001909201910161244a565b50868210156124875760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600082601f8301126124aa57600080fd5b81516124b8611cdf82611c99565b8181528460208386010111156124cd57600080fd5b6112e5826020830160208701611df8565b6000602082840312156124f057600080fd5b81516001600160401b0381111561250657600080fd5b6112e584828501612499565b61ffff8516815260806020820152600061252f6080830186611e1c565b6001600160401b03851660408401528281036060840152611b938185611e1c565b60006020828403121561256257600080fd5b815161150681611f95565b6000806040838503121561258057600080fd5b82516001600160401b0381111561259657600080fd5b6125a285828601612499565b925050602083015190509250929050565b6000602082840312156125c557600080fd5b815161150681611d16565b61ffff8716815260c0602082015260006125ed60c0830188611e1c565b82810360408401526125ff8188611e1c565b6001600160a01b0387811660608601528616608085015283810360a0850152905061262a8185611e1c565b9998505050505050505050565b60006020828403121561264957600080fd5b815161150681611e5b56fea264697066735822122092b3ff03c4edaf4ef1fe985c3bc390e5e3b59ab5f393df5353e5c792422a568864736f6c63430008140033

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

000000000000000000000000841dee9e35f30cfba5e02ecd6662c099c614f4eb000000000000000000000000564a18b95b0eddf323bd9f404835d175f74976af00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675000000000000000000000000eb575c45004bd7b61c6a8d3446a62a05a6ce18d8000000000000000000000000000000000000000000000000000000000000000a4574686c61734665657300000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _regAddr (address): 0x841dee9E35f30cfbA5E02ecD6662C099c614F4Eb
Arg [1] : _ethlasWallet (address): 0x564a18b95B0eDDF323bD9F404835D175F74976Af
Arg [2] : _ethlasFeesId (string): EthlasFees
Arg [3] : _lzEndpoint (address): 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675
Arg [4] : _proxyToken (address): 0xEb575C45004bd7B61C6A8D3446a62a05a6Ce18d8

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000841dee9e35f30cfba5e02ecd6662c099c614f4eb
Arg [1] : 000000000000000000000000564a18b95b0eddf323bd9f404835d175f74976af
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
Arg [4] : 000000000000000000000000eb575c45004bd7b61c6a8d3446a62a05a6ce18d8
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 4574686c61734665657300000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.