Core Contracts

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

`Boost::updateUserBoost` calculates boost based on a constant amount of `10000` rather than the `veToken balance`

Details

https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/governance/boost/BoostController.sol#L187

The amount used in calculating the newBoost in Boost::updateUserBoost is a constant 10000, where as the docs clearly states that this amount should be based on the veToken balance of the user.

Impact

After the first update it becomes impossible to update users boost as oldBoost and newBoost will always be the same.
Also, wrong calculation for boostAmount.

Tools Used

Manual Review

Recommendations

A new variable should be introduced inside the function which tracks the veToken balance of the user and used in the calculation rather than 10000

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

BoostController::updateUserBoost uses hardcoded 10000 base amount, storing basis points instead of actual boosted amount

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

BoostController::updateUserBoost uses hardcoded 10000 base amount, storing basis points instead of actual boosted amount

Support

FAQs

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

Give us feedback!