Core Contracts

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

Hardcoded Constants for Limits

Summary

https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/tokens/veRAACToken

Vulnerability Details

The contract contains several harcoded constants, such as:

MAX_TOTAL_SUPPLY = 100_000_000e18;

MAX_LOCK_AMOUNT = 10_000_000e18;

MAX_TOTAL_LOCKED_AMOUNT = 1_000_000_000e18;

Impact

Limits cannot be modified wihtout redeploying the contract.

Reduces flexibility for future contracts upgrades.

Tools Used

Manual Review

Recommendations

Consider using modifiable variables with an onlyOwner setter function:

uint256 public maxTotalSupply;
function setMaxTotalSupply(uint256 newLimit) external onlyOwner {
maxTotalSupply = newLimit;
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 3 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.