Wrong check for tokens to be minted in veRAACToken.lock()
This check is done to see whether the maximum allowed supply of veRAACTokens is going to be exceeded in this lock:
However, this `amount` is not the number of veRAACTokens being minted, it is `newPower`. The check is incorrectly done, allowing to mint more veRAACTokens than expected or reverting even if maximum supply is not exceeded.
Wrong check leads to the function reverting even if maximum veRAACToken supply is not exceeded or allowing to mint more tokens than expected (depends on the conversion of amount/newPower).
Manual testing
Update the lock() function to perform the correct check. Take into account that increase() and extend() function do not make this check before minting new veRAACTokens.
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.