Staking ProtocolinterfacesexternalInterfaces
IERC721Receiver
Interface for any contract that wants to support safeTransfers from ERC-721 asset contracts.
onERC721Received
_Whenever an {IERC721}
tokenId
token is transferred to this contract via {IERC721-safeTransferFrom}
by operator
from from
, this function is called.
It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
The selector can be obtained in Solidity with IERC721Receiver.onERC721Received.selector
._