Core Contracts

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

BoostController.updateTotalWeight() will return 0 values for totalWeight and votingPower

Summary

BoostController.updateTotalWeight() will return 0 values for totalWeight and votingPower

Vulnerability Details

BoostController.updateTotalWeight() will always return `totalWeight` and `votingPower` = 0 as BoostController contract lacks a mechanism to call lock() or increase() in veToken contract.

Impact

The returned value for `totalWeight` and `votingPower` by updateTotalWeight() will always be 0.

Tools Used

Manual review

Recommendations

Add a mechanism in BoostController contract which allows this contract to call lock() and increase() functions in veRAACToken contract.

Updates

Lead Judging Commences

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

BoostController::updateTotalWeight queries its own nonexistent lock position and voting power when calculating boosts, resulting in zero values that break all boost calculations

Support

FAQs

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