The increase function allows users to add more tokens to an existing lock without verifying whether the MAX_TOTAL_SUPPLY limit is exceeded. This oversight can lead to situations where the total supply surpasses the intended cap, potentially causing issues in the contract's supply management.
The lock function includes the following check to ensure that the total supply does not exceed MAX_TOTAL_SUPPLY:
However, the increase function does not include a similar validation before allowing users to increase their locked amount. Without this check, a user could potentially exceed the MAX_TOTAL_SUPPLY constraint by repeatedly increasing their locked amount.
The total supply of veRAAC tokens may exceed the defined MAX_TOTAL_SUPPLY, breaking the intended supply constraints.
This could lead to inflationary effects, affecting governance mechanisms or utility dependent on veRAAC tokens.
Manual code review
Add a supply cap validation in the increase function similar to the lock function:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.