We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d475d8e commit b93171bCopy full SHA for b93171b
contracts/token/common/ERC2981/ERC2981Internal.sol
@@ -24,6 +24,9 @@ abstract contract ERC2981Internal is IERC2981Internal {
24
{
25
uint256 royaltyBPS = _getRoyaltyBPS(tokenId);
26
if (royaltyBPS > 10000) revert ERC2981Internal__RoyaltyExceedsMax();
27
+
28
+ // intermediate multiplication overflow is theoretically possible here, but
29
+ // not an issue in practice because of practical constraints of salePrice
30
return (_getRoyaltyReceiver(tokenId), (royaltyBPS * salePrice) / 10000);
31
}
32
0 commit comments