In TokenDivider.sol, the fee calculation uses integer division which rounds down to 0 for small prices:
For example:
If price = 99 wei: fee = 99/100 = 0 wei
If price = 199 wei: fee = 1 wei, but sellerFee = 1/2 = 0 wei
Protocol loses revenue on small trades
Use basis points (BPS) and multiply before division to avoid rounding to zero:
This ensures precise fee calculation even for small amounts.
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.