Core Contracts

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

Calculations made with outdated data

Summary

The BoostController contract uses minimum an maximum boost variables for several calculations. The problem is that To handle it's state it uses an BoostCalculator.BoostState instance in which it stores maxBoost and minBoost values which can later be updated, but for some calculations it uses the initial constants of MAX_BOOST and MIN_BOOST instead of the BoostState variables.

Vulnerability Details

The instances where the constants are being used are: BoostController.sol#L126, BoostController.sol#L288 and BoostController.sol#L291

Impact

Incorrect information being returned or used in calculations.

Tools Used

Manual review.

Recommendations

Use the BoostState variables in the instances mentioned above.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!