Core Contracts

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

updateBoostState not called during withdrawal and extension of locked tokens

Summary

the _updateBoostState is not called during withdrawal and extension.

Vulnerability Details

When withdrawing , emergencyWithdraw or extending lock, the _updateBoostState is not called , this will lead to the contract storing an incorrect state of the voting power or the user and the total voting power of the system

Impact

Incorrect state update for user voting power and system voting power.

Tools Used

Manual review

Recommendations

Call the updateBoostState in the withdraw , emergencyWithdraw and extend function just like in the increase and lock.

Updates

Lead Judging Commences

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

veRAACToken::_updateBoostState not called in extend/withdraw

Support

FAQs

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