The calculateBoost()
function currently returns the boostBasisPoints
and boostedAmount
without normalizing these values to adhere to the defined minimum
and maximum
boost limits (1x
and 2.5x
). This oversight leads to incorrect returned values that do not reflect the actual boost attainable within the protocol's constraints.
In the current implementation, the calculateBoost()
function computes the boostedAmount
based on user voting power and other parameters.
However, it does not enforce the normalization of this amount to ensure it falls within the specified limits.
As a result, callers may receive inflated or misleading values that do not accurately represent the boost
they can achieve.
Manual Review
Implement logic within the calculateBoost()
function to ensure that the returned boostedAmount
adheres to the defined minimum and maximum boost limits.
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.