Sparkn

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

Duplicate winners are possible

Summary

Duplicate winners are possible

Vulnerability Details

The Distributor.sol::distribute() method doe snot check if duplicate winners are being sent

function distribute(address token, address[] memory winners, uint256[] memory percentages, bytes memory data)

Impact

A winner can be repeated in the winners by mistake, which can lead to the duplicate winner getting more funds

Tools Used

Manual Code Review

Recommendations

Add a check to ensure that the list of winners are not repeated

Auditor

NeoCrao

Support

FAQs

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