Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low
Valid

Winners Array must and should be unique Addresses

Summary

winners Array must And should be contain unique addresses why because of for one Context there is some percentage of prizes only other wise the prizes are distributed in more than one time. it leads to wrong prize distribution.

Vulnerability Details

Take a simple Example suppose the percentages are taken from 1-10000 so it is huze value. many winners are present in that context At that time organizer mistakenly give two same Addresses then it leads to double prize distribution to the same person.It is an organizer issue but Suppose there is huze number of winners are present it is not possible to check their addresses one by one it takes so much of time. so we need to check it .it is helpful for organizer.

Impact

Address must be unique in the winners array otherwise it leads to double prize distribution.

Tools Used

manual Analysis

Recommendations

Check Each address in the winner Array when it is duplicate then remove from the Array

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.