When user interact with veRAACToken::lock deposit raacToken to get voting power , MAX_TOTAL_SUPPLY is checked. However protocol use `amout` as increased supply.
`totalSupply() + amount` is compare with MAX_TOTAL_SUPPLY to ensure not exceed the max supply.
the amount need to be convert to newPower via `calculateAndUpdatePower` which is less than amount if duration is not the max 1460 days
Thus above validation is incorrect
calculationn error
foundry
add `newPower ` to totalSupply instead of amount
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.