increase lock will revert even when the voting power is legitimately increased.
Following is increase function
Suppose initially the user had voting power = 100 therefore 100 tokens minted to the user.
Now suppose 3/4th of the locking period has passed and the voting power left = 25 tokens i,e current voting power. Now the user wants to increase the voting power by adding some tokens and his current power becomes 50 ve raac tokens.
So as of now his current voting power has increased from 25 to 50. Now what happens is when _mint is called following happens
Here new power = 50 tokens and balanceof(msg.sender) = 100 tokens initially minted. therefore this will revert even tough the current voting power of the user increased to 50 he wouldn't be able to mint those tokens.
Unnecessary revert will happen
Manual
Do check if new power is greater than balance of msg.sender or not
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.