You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the MixinPurchase._purchasePriceFor() function, you do not need this require statement require(unlockDiscount <= minKeyPrice, 'INVALID_DISCOUNT_FROM_UNLOCK'); because of unlockDiscount is > minKeyPrice, it will underflow when you try to subtract the former from the latter because the contract is compiled w/ solidity version ^0.8.0.
The text was updated successfully, but these errors were encountered:
Handle
itsmeSTYJ
Vulnerability details
Impact
gas op
Recommended Mitigation Steps
in the
MixinPurchase._purchasePriceFor()
function, you do not need this require statementrequire(unlockDiscount <= minKeyPrice, 'INVALID_DISCOUNT_FROM_UNLOCK');
because of unlockDiscount is > minKeyPrice, it will underflow when you try to subtract the former from the latter because the contract is compiled w/ solidity version ^0.8.0.The text was updated successfully, but these errors were encountered: