A check to make sure no more than MAX_TOTAL_SUPPLY tokens are minted is missing when users increase their lock.
Users lock RAAC tokens to mint veRAAC tokens. When users initially lock tokens, there is a check to ensure the existing total supply + new minted doesn't go above MAX_TOTAL_SUPPLY:
But when users increase their lock, that check is missing, meanwhile they are still minted more tokens:
The check is missing in the increase() function as well as in the internal functions that are called.
By increasing their lock, users can be minted new tokens while they shouldn't be allowed to, since it would go above the MAX_TOTAL_SUPPLY limit imposed by the protocol.
Manual Review
Add the check to increase() as well.
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.