getBoostMultiplier() simply returns MAX_BOOST
due to wrong calculation:
It returns:
If getBoostMultiplier()
is used to calculate rewards, it will always evaluate to max boost based rewards given out to the user. Protocol loses funds.
Simply use the BoostCalculator.calculateTimeWeightedBoost()
function which returns boostBasisPoints
as one of its return values. Already called once on L116:
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.