In the "consolidatePendingStakes()" function the for loop executes all through the pending stakes althought the if condition return false. After the 'if condition' returns false we can return the execution because the pending stakes are pushed to the array based on the time when they were staked
So if the "if" condition returns false then there is no probability for the second stake deposited time is less than the the stake which was returned false.
Gas
Manual review
return the loop when the if condition retutns false
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.