weEthOftMessageExecutor

Git Source

Inherits: BaseOftMessageExecutor

Title: weEthOftMessageExecutor

Author: Malda Protocol

OFT message executor for weETH-style OFTs where the bridge contract exposes an inner token().

Functions

executeSend

Executes a send message for weETH

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 OFT's inner token() does not match the provided underlying.

error Executor_DifferentInnerToken();