Impact: Minor rounding errors in fee calculation; seller or marketplace may lose/overpay small fractions of ETH. (Severity: Low)
Likelihood: Low — occurs only for bids where (bid.amount * S_FEE_PERCENTAGE) % 100 != 0.
Scope (affected files):
src/BidBeastsNFTMarket.sol (function: _executeSale())
Normal behaviour:
Fee calculation should accurately deduct the marketplace fee from the winning bid.
Issue:
Currently, the fee is calculated as:
Solidity integer division truncates any remainder.
This can lead to tiny rounding errors, especially for non-whole-number ETH amounts.
Impact:
Seller may receive slightly less than expected.
Marketplace may collect slightly less in fees.
Mostly low-severity but could add up in high-volume markets.
Integer division in requiredAmount truncates fractions, allowing bids slightly lower than intended.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.