Missing a 'require' keyword in the function
It would be a better solution if a 'require' keyword is added just before the 'for' loop in the 'holderPendingStakes' function. Otherwise, it could lead to entering an infinite loop and could be an attack vulnerability.
Manual review
Delete the 'if (_pendingStake.holder == _holder)' statement inside the 'for' loop and replace it just before the loop with 'require(_pendingStake.holder == _holder, "err-invalid-holder");'
The new function should look like this:
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.