The BoostController::getBoostMultiplier
function incorrectly calculates the boost multiplier for a user in a pool. The variable userBoost.amount
is used in both the numerator and denominator in a way that cancels itself out, causing the function to always return a constant value. This renders the function ineffective for determining user-specific boosts.
The calculation in the function is as follows:
Since baseAmount
is derived from userBoost.amount
, it returns `MAX_BOOST`.
The function does not accurately compute a user’s boost multiplier.
The boost mechanism may not work as intended, potentially undermining the protocol’s incentive structure.
Manula review
Correct the formula to ensure userBoost.amount
properly influences the result
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.