Core Contracts

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

Boost calculation uses voting power instead of balance

Summary

In the BoostController contract the calculateBoost function returns the boost calculation using the BoostCalculator library's calculateTimeWeightedBoost function, this takes as it's second parameter the user's veRAACToken balance but is instead being passed the user's voting power.

Vulnerability Details

BoostController.sol#L165

Impact

Incorrect boost calculation.

Tools Used

Manual review.

Recommendations

Use the balance of ther user instead.

Updates

Lead Judging Commences

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

BoostController uses inconsistent input values in calculateBoost (voting power) vs _calculateBoost (token balance), creating misleading boost estimates

Support

FAQs

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

Give us feedback!