rsEthOftMessageExecutor

Git Source

Inherits: BaseOftMessageExecutor

Title: rsEthOftMessageExecutor

Author: Malda Protocol

OFT message executor for rsETH-like wrapper OFTs where the underlying may wrap/unwrap into an inner token.

Functions

executeSend

Pulls tokens from the rebalancer, unwraps if needed, then sends via OFT.

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

Parameters

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

Returns

NameTypeDescription
<none>MessagingReceiptMessagingReceipt LayerZero receipt containing the message GUID.

Errors

Executor_DifferentInnerToken

Thrown when the bridge contract is not an allowed inner token for the wrapper.

error Executor_DifferentInnerToken();