The _calculateBoost function contains a logical oversight in its comparison operator, potentially affecting boost calculations when values are exactly equal.
Current implementation:
The function fails to handle cases where boostedAmount equals amount, requiring an adjusted comparison operator.
Potential boost calculation inaccuracies
Incorrect reward distribution scenarios
Manual Code Review
Static Analysis
Implement updated comparison logic:
This ensures proper handling of equal-value scenarios and maintains calculation accuracy.
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.