Skip to content

Commit f3f566b

Browse files
committed
check
1 parent 9a46869 commit f3f566b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/prebuilts/open-edition/OpenEditionERC721.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ contract OpenEditionERC721 is
164164
platformFeeRecipient = recipient;
165165
platformFees = ((totalPrice * platformFeeBps) / MAX_BPS);
166166
}
167+
require(totalPrice >= platformFees, "price less than platform fee");
167168

168169
bool validMsgValue;
169170
if (_currency == CurrencyTransferLib.NATIVE_TOKEN) {

0 commit comments

Comments
 (0)