When all candidates have the same rank,the first address of the list is selected to the president. This is unfair.
add the code to the RankedChoiceTest.t.sol
file, two voters(voters[0] and voters[1]) vote the same three candidates(candidates[0],candidates[1],candidates[2]), so the candidates[0],candidates[1],candidates[2] has the same rank, but the first one of the candidates(candidates[0]
)is choosed to the president, which is unfair.
POC
When all candidates have the same rank,the first address of the list is selected to the president. This is unfair.
foundry, vscode
add the logic for selecting the president when the highest rank candidate greater than one person.
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.