Core Contracts

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

Missing `MAX_TOTAL_LOCKED_AMOUNT` check in `lock` function of `veRAACToken` allows users to exceed global limit

Description

In veRAACToken there is a maximum global limit (MAX_TOTAL_LOCKED_AMOUNT) on the total amount of RAAC tokens that can be locked. However, this restriction is not enforced in the lock function, allowing users to bypass this restriction and lock more tokens than intended.

Context

Impact

High. The absence of this restriction check allows users to exceed the maximum locked token limit, potentially breaking protocol assumptions and leading to unintended consequences.

Likelihood

High. Since the lock function does not validate the global locked token limit, any user can bypass this restriction.

Recommendation

Implement a check inside the lock function to enforce the MAX_TOTAL_LOCKED_AMOUNT restriction, preventing users from locking more tokens than the allowed limit.

Updates

Lead Judging Commences

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