IERC1363Spender
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
| Name | Type | Description |
|---|---|---|
| owner | address | The account that approved the tokens. |
| value | uint256 | The amount approved. |
| data | bytes | Additional data with no specified format. |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bytes4 | IERC1363Spender.onApprovalReceived.selector to accept the approval. |