QA Report #155
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Summary
Non-critical Issues
Total: 1 instances over 1 issues
Non-critical Issues
Useless variables, redundant code
Since
uEpoch == 0
in the condition of the if statement, the[uEpoch + 1] = [0+1] = [1]
,uEpoch
inuserPointHistory[_addr][uEpoch + 1] = userOldPoint
is meaningless and can be written asuserPointHistory[_addr][1] = userOldPoint
.https://github.com/code-423n4/2022-08-fiatdao/blob/fece3bdb79ccacb501099c24b60312cd0b2e4bb2/contracts/VotingEscrow.sol#L257-L259
The text was updated successfully, but these errors were encountered: