Sops might be wrongly distributed as quickSort
does not work properly.
In order to distribute sops as expected, quickSort
is used to sort them in an ascending order (from highest to lowest). However, the algorithm used does not work properly and does not always sort them.
Due to time constraints, I was unable to find the exact root cause, but an example input which would prove this claim is the following [4, 2, 5, 3, 7, 6]
. This would return [7, 6, 5, 3, 2, 4]
Can both lead to overdistribution and underdistribution of yield, depending on the Well reserves
Manual review
Use a different sorting algorithm.
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.