Core Contracts

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

M-5 The `increase` Function Does Not Directly Check if `totalSupply()` Will Exceed `MAX_TOTAL_SUPPLY`. This May Lead to the Total Supply of veRAAC Tokens Exceeding the Pre-set Maximum Limit When Increasing Locks.

Description

In the increase function, there is no direct check to see if totalSupply() + amount will exceed MAX_TOTAL_SUPPLY. This may allow users to increase the locked amount without limit, potentially causing the total supply of veRAAC tokens to exceed the pre-set maximum limit.

Note: Although MAX_TOTAL_SUPPLY = 100,000,000e18, this scenario could still occur! It is recommended to fix this issue.

Impact

Users can increase the locked RAAC token amount without limit, potentially causing the total locked RAAC tokens to exceed the maximum limit!

Recommendations

Add the check if (totalSupply() + amount > MAX_TOTAL_SUPPLY) revert TotalSupplyLimitExceeded(); in the increase function.

Updates

Lead Judging Commences

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

veRAACToken::increase doesn't check the token supply, making it possible to mint over the MAX

Support

FAQs

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