From 6d27d87bb759a528b22665da322726b746ed01a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Garc=C3=ADa?= Date: Tue, 3 Sep 2024 07:49:37 -0600 Subject: [PATCH] Add note about 100% royalty in IERC2981 (#5173) Signed-off-by: Hadrien Croubois --- contracts/interfaces/IERC2981.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/interfaces/IERC2981.sol b/contracts/interfaces/IERC2981.sol index 9e7871df2..22b951dd8 100644 --- a/contracts/interfaces/IERC2981.sol +++ b/contracts/interfaces/IERC2981.sol @@ -15,6 +15,9 @@ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. + * + * NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the + * royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers. */ function royaltyInfo( uint256 tokenId,