Missing update totalLocked in veRAAC token
In veRAAC token, there is one variable state.totalLocked. This totalLocked aims to record the whole total locked RAAC token in this contract. We will make sure that the total locked amount should not exceed maxTotalLocked.
When we create or increase one lock, we will increase the state.totalLocked. The problem here is that in withdraw() function, we miss updating the totalLocked. This will cause that the record in state.totalLocked. When we use this state.totalLocked to check whether we exceed the maxTotalLocked, this check will be incorrect.
Miss update state.totalLocked in withdraw function. The record state.totalLocked will be incorrect. When we use this state.totalLocked to check whether the total locked amount exceed the max lock cap, this check will be incorrect.
Manual
Update state.totalLocked in withdraw function.
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.