stake.link

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

Changes in the LinearBoostController will break accounting

Summary

Changes in the LinearBoostController will break accounting.

Vulnerability Details

LinearBoostController has ability to change maxBoost and maxLockingDuration. Both of these params have significant impact on boost calculation.

Once boost is calculated, then it will not be recalculated until user would like to change something. This means that when maxBoost or maxLockingDuration will be changed, then new locks will start using new values, while old locks will still use their boost calculated before.

It is possible that after some changes pool will stop working at all as his accounting of effective balance will be broken.

Impact

Effective balance calculation is broken.

Tools Used

VsCode

Recommendations

Do not allow modify maxBoost and maxLockingDuration.

Updates

Lead Judging Commences

0kage Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic
rvierdiiev Submitter
over 1 year ago
0kage Lead Judge
over 1 year ago
0kage Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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