The locked amount is added twice which will lead to over-calculation of the newPower
when increasing lock.
The increase allow users to increase their raac
token locking amount in order to mint more veRAAC
An issue with this implementation is that , when calculating the newPower
it adds the amount on top of the already added amount during the lockState.increaseLock, this will lead to over minting of the veRAAC
token.
Amount that's already added is readded again when calculating the newPower
.
Manual review
Remove the + amount
and just provide the amount because it was already updated during lockState.increaseLock
.
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.