The LinearBoostController::getBoostAmount
function may return zero due to integer division truncation when the product of _amount
, maxBoost
, and _lockingDuration
is less than maxLockingDuration
.
This can occur when staking with small amounts or for short locking durations, which should still result in a staker getting credited a non-zero boost.
Stakers will not be credited for a boost when they should be.
Manual Review
Consider implementing a minimum staking amount and/or lockDuration so it is not possible for a user to "lock" tokens and not receive a boost in rewards.
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.