Skip to content
Lattice

IERC1363Receiver

Git Source

Title: IERC1363Receiver

Interface for contracts that accept ERC-1363 transferAndCall and transferFromAndCall transfers.

Functions

onTransferReceived

Handles an ERC-1363 transfer. The token calls it after the balances have moved.

function onTransferReceived(address operator, address from, uint256 value, bytes calldata data)
        external
        returns (bytes4);

Parameters

NameTypeDescription
operatoraddressThe caller of transferAndCall or transferFromAndCall.
fromaddressThe account the tokens came from.
valueuint256The amount transferred.
databytesAdditional data with no specified format.

Returns

NameTypeDescription
<none>bytes4IERC1363Receiver.onTransferReceived.selector to accept the transfer.