Skip to content
Lattice

IERC1363Spender

Git Source

Title: IERC1363Spender

Interface for contracts that accept ERC-1363 approveAndCall approvals.

Functions

onApprovalReceived

Handles an ERC-1363 approval. The token calls it after the allowance is set.

function onApprovalReceived(address owner, uint256 value, bytes calldata data) external returns (bytes4);

Parameters

NameTypeDescription
owneraddressThe account that approved the tokens.
valueuint256The amount approved.
databytesAdditional data with no specified format.

Returns

NameTypeDescription
<none>bytes4IERC1363Spender.onApprovalReceived.selector to accept the approval.