The veRAACTokendeclare a constant variable called MAX_TOTAL_LOCKED_AMOUNTwith the following documentation:
The veRAACToken::lockdoesn't have an implemented check, while the veRAACToken::increasehas, but it's commented.
(veRAACToken::increase)[https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/libraries/governance/LockManager.sol#L163-L164]
Although declared and with a clear role, the variable is not used. This will break protocol design by allowing the locked amount to be higher than it was supposed to be.
Users can leverage the unlimited locking functionality to deposit more RAAC Tokensand force a voting direction that can be more favorable for them.
Code Review
Ensure the MAX_TOTAL_LOCKED_AMOUNTis properly used to limit locked amounts.
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.