LayerZero OFT

send

/**
* @dev Executes the send operation.
* @param _sendParam The parameters for the send operation.
* @param _fee The calculated fee for the send() operation.
*      - nativeFee: The native fee.
*      - lzTokenFee: The lzToken fee.
* @param _refundAddress The address to receive any excess funds.
* @return msgReceipt The receipt for the send operation.
* @return oftReceipt The OFT receipt information.
*
* @dev MessagingReceipt: LayerZero msg receipt
*  - guid: The unique identifier for the sent message.
*  - nonce: The nonce of the sent message.
*  - fee: The LayerZero fee incurred for the message.
*/
function send(
   SendParam calldata _sendParam,
   MessagingFee calldata _fee,
   address _refundAddress
) external payable virtual returns (MessagingReceipt memory msgReceipt, OFTReceipt memory oftReceipt);

When bridging any OFT compatible token in the StakeUp ecosystem, stUsdc or SUP, the send function accomplishes this without the need of extra third party bridges.

Last updated