An issue was identified in the getBoostMultiplier function where the calculation always returns MAX_BOOST if userBoost.amount > 0. The formula used incorrectly divides the amount by itself, leading to a constant return value.
Affected Line:
Issue: The baseAmount calculation does not properly normalize the boost multiplier, causing the return value to always equal MAX_BOOST whenever userBoost.amount is greater than zero.
Users will always see the maximum boost multiplier, regardless of their actual boost calculation.
This can lead to inaccurate reward distribution and unfair advantages.
Users may be misled about their true boost status, impacting their decisions regarding staking or participation.
Manual code review
Solidity static analysis
The calculation should be revised to correctly determine the boost multiplier based on actual user data.
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.