The length of winners[] and percentages[] is checked but there is no to determine if their order is same.
If the order of winners[] and percentages[] is not same, winning funds can be mismatched.
The winners may lose their winnings and receive very low amounts than what they are supposed to.
Manual Analysis
Instead of using two separate arrays, use a single array of struct.
Example:
And use this in the _distribute() function:
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.