Bläddra i källkod

Add note about 100% royalty in IERC2981 (#5173)

Ernesto García 1 år sedan
förälder
incheckning
55fd53c6d2
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      contracts/interfaces/IERC2981.sol

+ 3 - 0
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,