The increase
function in veRAACToken.sol
lacks a check for MAX_TOTAL_SUPPLY
, allowing users to exceed the total supply limit of veRAACToken. While this check is correctly implemented in the lock
function, users can bypass it by increasing their existing locked amount. This could lead to an inflationary scenario where the total supply exceeds the intended cap.
Incorrect Behavior:
The lock
function correctly enforces the maximum supply limit:
However, the increase
function does not check if the total supply remains within the limit.
This allows users who already have an active lock to mint more veRAAC tokens even if the total supply cap is reached.
Unintended Inflation: The total supply of veRAACToken can exceed MAX_TOTAL_SUPPLY
, breaking supply constraints.
Economic Imbalance: If supply exceeds the designed cap, it may impact governance voting power and incentives.
Manual Review
Add a total supply check in the increase
function, similar to the one in lock
:
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.