rsEthOftMessageExecutor
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
| Name | Type | Description |
|---|---|---|
underlying | address | The underlying token address. |
bridgeContract | address | The bridge contract used for the OFT send (may differ from underlying). |
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 |
|---|---|---|
<none> | MessagingReceipt | MessagingReceipt 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();