Core Contracts

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

MAX_TOTAL_LOCKED_AMOUNT cap is not enforced in the contract

Vulnerability Details

The veRAACToken contract defines a constant MAX_TOTAL_LOCKED_AMOUNT ( 1,000,000,000 = 1 Billion)
that represents the maximum amount of RAAC tokens that can be locked in the veRAACToken contract.

This limit is expected to be enforced in functions lock and increase.
But it is not checked in any of the functions, allowing RAAC tokens locked to potentially exceed the cap.

Impact

The RAAC locked in the veRAAC contract could exceed the cap expected to be set by
MAX_TOTAL_LOCKED_AMOUNT

Recommendations

Enforce the MAX_TOTAL_LOCKED_AMOUNT checks in lock and increasefunctions respectively.
Revert if the newly added tokens exceed this limit.

Updates

Lead Judging Commences

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

`veRAACToken::lock` function doesn't check MAX_TOTAL_LOCKED_AMOUNT

Support

FAQs

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