IOftMessageExecutor
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
| Name | Type | Description |
|---|---|---|
underlying | address | The underlying token address. |
bridgeContract | address | The bridge contract used for the OFT send. |
params | SendParam | LayerZero send parameters. |
fees | MessagingFee | LayerZero messaging fees. |
rebalancer | address | The rebalancer address providing the funds. |
refundAddress | address | Address that receives any excess native fee refund. |
Returns
| Name | Type | Description |
|---|---|---|
receipt | MessagingReceipt | The 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
| Name | Type | Description |
|---|---|---|
market | address | The market address. |
underlying | address | The underlying token address. |
bridgeContract | address | The bridge contract used for OFT operations. |
executeCompose
Executes compose handling for a market.
function executeCompose(address market, address underlying, address bridgeContract) external payable;
Parameters
| Name | Type | Description |
|---|---|---|
market | address | The market address. |
underlying | address | The underlying token address. |
bridgeContract | address | The bridge contract used for OFT operations. |