DeFiHardhatFoundry
250,000 USDC
View results
Submission Details
Severity: low
Valid

Ladder in `LibIncentive::fracExp` Is Missing One Condition

Summary

Beanstalk rewards the caller of SeasonFacet::sunrise with newly minted Beans; the reward is calculated based on the number of blocks late the function was called. The amount is obtained with LibIncentive::fracExp, this function uses a ladder to read secondsLate and compare it for conditions when the value is equal to values on the range from 0 to 300 (inclusive) to determine by which amount the reward must be scaled by, but the function does not include a condition for when secondsLate is equal to 240.

Tools Used

Manual review

Recommendations

Include this condition in the ladder.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

LibIncentive misses `240` case

Support

FAQs

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