The increase
and extend
functions in the veRAACToken
contract allow users to add more RAAC tokens to an existing lock or extend the lock duration, respectively. However, neither function includes a check to ensure that the total supply of veRAAC tokens does not exceed MAX_TOTAL_SUPPLY
. This oversight allows users to mint veRAAC tokens beyond the intended supply cap.
The increase
function enables users to lock additional RAAC tokens and mint veRAAC tokens accordingly. However, it does not check supply limit.
https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/libraries/governance/LockManager.sol#L152
Similarly, the extend
function can also mint new veRAAC tokens if extending the lock duration increases the voting power.
The MAX_TOTAL_SUPPLY
limit can be bypassed, allowing more veRAAC tokens to exist than intended.
Manual
Before minting new veRAAC tokens in both increase
and extend
, check whether the total supply exceeds MAX_TOTAL_SUPPLY
.
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.