incorrect lock amount checking in veRAACToken::lock()
veRAACToken::lock() is for user to lock Raac tokens and get voting power represented by veRAACToken.
The implementation is as follow:
before locking, lock amount is checked against some predefined parameters. However these checks are not implemented correctly. For example,
$$ if (totalSupply() + amount > MAX_TOTAL_SUPPLY) revert TotalSupplyLimitExceeded(); $$
totalSupply() is total minted veToken, while amount is Raac token, and "MAX_TOTALSUPPLY" is a limitation for veToekn amount. Moreover, "MAX_TOTALLOCKED_AMOUNT ", the limitation of total locked amount is not checked
users may deposit more than protocol intended
manual
consider implement right restriction on locked 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.