stake.link

stake.link
DeFiHardhatBridge
27,500 USDC
View results
Submission Details
Severity: low
Invalid

Stakers Won't Be Credited For Boost

Summary

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.

Impact

Stakers will not be credited for a boost when they should be.

Tools Used

Manual Review

Recommendations

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.

Updates

Lead Judging Commences

0kage Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.