getTotalVotingPower
function in veRAACToken contract is defined as follows:
This is incorrect because this function will return the total supply of veRAAC tokens, not taking into account the duration of locks.
The impact of this issue is medium as it leads to incorrect returned data and will cause front-end integration issues.
Manual review.
Currently, there is no way to retrieve the total voting power of the veRAAC holders. veRAACToken contract should be modified to allow retrieving the total voting power at a given timestamp. More specifically, the VotingPowerLib could track the total voting power in its VotingPowerState
.
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.