When a user locks in veRAACToken for a second time, existing lock position will be overwritten by the new position. This will lead to invalid voting power calculation and total supply of veRAACToken.
The following is veRAACToken.lock implementation:
The problem is that, when the user locks for a second time, existing lock state will be overwritten by new lock state.
Moreover, user will get veToken minted according to newPower.
This will result in discrepancy between veToken balance and voting power.
There will be discrepancy between veToken balance and voting power. i.e. for double-locked users, they will have higher veToken balance than actual voting power.
Prevent double lock.
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.