Since _lockState.totalLocked represent the total amount of raacTokens currently locked in veRAACToken, it has to be correctly increased / decreased on every deposit / withdrawal functions respectively.
While the lock() and increase() correctly increase it on every deposit with the deposit amounts but the withdraw() and emergencyWithdraw() doesn't decrease it.
Incorrect _boostState.totalWeight is updated
Decrease _lockState.totalLocked with the user's locked amount in both withdrawal functions like this:
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.