Core Contracts

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

[M-06] Wrong initialization value of minBoost in BaseGauge contract

Summary

The value used to initialize minBoost is wrong according to the design of the contract.

Vulnerability Details

The value of minBoost is set to 1e18 while to be in line with the values assigned to maxBoost and WEIGHT_PRECISION, it should be 10000, meaning that's it's a 1x boost.

Location

Impact

This issue will result in wrong results and checks, especially in the operations performed by BoostCalculator which is the library that handles boost updates.
This will compromise the functioning of the protocol's gauge system.

Tools Used

Manual review.

Recommendations

Replace 1e18 with 10000.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months 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.

Give us feedback!