Core Contracts

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

`boostState.minBoost`has been wrongly initialized as `1e18`in the `BaseGauge` instead of `10000`

Details

https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/governance/gauges/BaseGauge.sol#L142

BaseGauge wronly initialized the minBoost as 1e18which implies a min Boost of 1000000000000x boost instead of 1x. As can be seen from the docs, this value is supposed to be 1x that is 10000. There is provision in BaseGauge::setBoostParameters for this to be changed. However, in the period where it is not changed, there is room for the the protocol accounting to be manipulated.

Impact

Wrong accounting

Tool Used

Manual Review

Recommendation

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