Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Valid

boostState.minBoost should be less than maxBoost

Summary

The booState.minBoost have been wrongly set.

Vulnerability Details

The BaseGauge abstr contract incorrectly initializes the boostState.minBoost as a value thats not in basis point and also way more than the maxBoost, this setting is incorrect and will lead to inconsistencies regarding the min/max boost.

// Initialize boost parameters
boostState.maxBoost = 25000; // 2.5x
@> boostState.minBoost = 1e18;
boostState.boostWindow = 7 days;

Impacts

The minBoost is more than the max and also not in basis points which caused revert on calculating the boostRange

Tools Used

Manual review

Recommendations

Change it to be in basis point(10000) and also it should be less than the max boost.

Updates

Lead Judging Commences

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

boostState.minBoost is set to 1e18

Support

FAQs

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