Skip to content

Commit 55fd53c

Browse files
authored
Add note about 100% royalty in IERC2981 (#5173)
1 parent 373eabe commit 55fd53c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contracts/interfaces/IERC2981.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ interface IERC2981 is IERC165 {
1515
/**
1616
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
1717
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
18+
*
19+
* NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the
20+
* royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers.
1821
*/
1922
function royaltyInfo(
2023
uint256 tokenId,

0 commit comments

Comments
 (0)