increase function in veRAACToken contract is defined as follows:
The issue arises because locks[msg.sender].amount is passed to _updateBoostState in this function. The problem is that locks storage mapping is defined but never used apart from this place. It is only used in 2 getter functions:
Instead of passing locks[msg.sender].amount to _updateBoostState internal function, _lockstate.locks[msg.sender] should be passed, as _lockstate is the variable that holds the state of locks.
The impact of this issue is low as this parameter is in fact never used by the _updateBoostState function. But such a discrepancy in the input parameter should be noticed.
Manual review.
Make sure to pass _lockstate.locks[msg.sender] instead of locks[msg.sender].amount to _updateBoostState internal function in increase function.
Also, update getter functions getLockedBalance and getLockEndTime accordingly.
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.