Skip to content

Commit

Permalink
Add note about 100% royalty in IERC2981 (#5173)
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw authored Sep 3, 2024
1 parent 373eabe commit 55fd53c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/interfaces/IERC2981.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 55fd53c

Please sign in to comment.