The function consolidatePendingStakes
iterates twice through the pendingStakes
array one in the function itself and later in deletePendingStake
in the flow. If there are lot of items in the array, the function could run out of gas, and all functions which call consolidatePendingStakes
would become inaccessible for the protocol users.
Functions which call consolidatePendingStakes
becomes inaccessible.
Manual
Improve logic, or gain control over pendingStakes
similar to other arrays.
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.