You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by simpletrontdip December 22, 2022
Hi, while reading through the code, I've found out that submitVote did not check for the uniqueness of positions.
Since inside countVotes, we only find the position index and add the shares, so some voters can exploit this to manipulate the election's result, say:
Discussed in #6711
Originally posted by simpletrontdip December 22, 2022
Hi, while reading through the code, I've found out that
submitVote
did not check for the uniqueness of positions.Since inside
countVotes
, we only find the position index and add theshares
, so some voters can exploit this to manipulate the election's result, say:agoric-sdk/packages/governance/src/multiCandidateVoteCounter.js
Lines 68 to 76 in ca0b874
agoric-sdk/packages/governance/src/multiCandidateVoteCounter.js
Lines 168 to 183 in ca0b874
The text was updated successfully, but these errors were encountered: