Core Contracts

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

BaseGauge is initialized with wrong min boost parameter

Summary

Incorrect initial min boost parameter of BaseGauge will bring DoS to gauge, unless fixed by setBoostParameters function call.

Vulnerabilty Details

Initial values of minBoost and maxBoost parameters of BaseGauge is wrong:

boostState.maxBoost = 25000; // 2.5x
@> boostState.minBoost = 1e18;

This will bring DoS to gauge due to underflow in BoostCalculator.calculateBoost:

uint256 boostRange = params.maxBoost - params.minBoost;

Impact

Gauge won't be working until boost parameters get fixed by BaseGauge.setBoostParameters

Recommendation

- boostState.minBoost = 1e18;
+ boostState.minBoost = 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!