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