IOFTReceiverV2

SPDX-License-Identifier: SSPL-1.-0

Functions

onOFTReceived

Called by the OFT contract when tokens are received from source chain.

function onOFTReceived(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes32 _from, uint256 _amount, bytes calldata _payload) external;

Parameters

NameTypeDescription
_srcChainIduint16The chain id of the source chain.
_srcAddressbytesThe address of the OFT token contract on the source chain.
_nonceuint64The nonce of the transaction on the source chain.
_frombytes32The address of the account who calls the sendAndCall() on the source chain.
_amountuint256The amount of tokens to transfer.
_payloadbytesAdditional data with no specified format.