IOftMessageExecutor

Git Source

Title: IOftMessageExecutor

Author:

Interface for OFT message executor helpers used via delegatecall by bridges.

Functions

executeSend

Executes an OFT send on the bridge contract (OFT) and returns the LayerZero receipt.

function executeSend(
    address underlying,
    address bridgeContract,
    SendParam calldata params,
    MessagingFee calldata fees,
    address rebalancer,
    address refundAddress
) external payable returns (MessagingReceipt memory receipt);

Parameters

NameTypeDescription
underlyingaddressThe underlying token address.
bridgeContractaddressThe bridge contract used for the OFT send.
paramsSendParamLayerZero send parameters.
feesMessagingFeeLayerZero messaging fees.
rebalanceraddressThe rebalancer address providing the funds.
refundAddressaddressAddress that receives any excess native fee refund.

Returns

NameTypeDescription
receiptMessagingReceiptThe LayerZero messaging receipt containing the message GUID.

processUncomposed

Fallback route in case lzCompose does not execute; unwraps/forwards funds to the market.

function processUncomposed(address market, address underlying, address bridgeContract) external payable;

Parameters

NameTypeDescription
marketaddressThe market address.
underlyingaddressThe underlying token address.
bridgeContractaddressThe bridge contract used for OFT operations.

executeCompose

Executes compose handling for a market.

function executeCompose(address market, address underlying, address bridgeContract) external payable;

Parameters

NameTypeDescription
marketaddressThe market address.
underlyingaddressThe underlying token address.
bridgeContractaddressThe bridge contract used for OFT operations.