getLockPosition
function in veRAACToken contract is defined as follows:
with LockPosition
struct being:
The problem is that power
field of LockPosition
struct is set to balanceOf(account)
instead of getVotingPower(account, block.timestamp)
.
The issue is problematic because getLockPosition
returns the amount of veRAACToken a user holds, no taking into account the duration of the lock. This is incorrect, as the voting power is retrieved using getVotingPower
function.
The impact of this issue is medium.
Manual review.
Make sure to correctly return the current user lock position with getLockPosition
:
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.