The BoostController's
getBoostMultiplier
function will always return MAX_BOOST
instead of the user's actual boost.
Let's say that the function is called for a delegation with amount 1e18.
baseAmount = 1e18* 10000/25000 = 0.4e18
function will return 1e18*10000/0.4e18 = 25000, i.e. the MAX_BOOST
No impact at the moment because the function is not currently being used elsewhere in the codebase but presumably this is because the codebase is not ready to be deployed in production.
If an external contract, such as a pool, calls this function to calculate what multiplier should be allocated to the user, it will receive wrong information and overinflate user rewards.
Manual Review
Use the logic of the _calculateBoost
function to calculate the true multiplier.
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.