ThePredicter::withdrawPredictionFees
does not have a balance check on prediction fee available which could have caused owner to still proceed the withdraw process even though there isn't any fee available.
In ThePredicter::withdrawPredictionFees
, the owner can withdraw prediction fees at anytime. However, there isn't any balance check on the available prediction fees left over for withdrawal, owner could still proceed the withdraw process with no fee received at the end of this transaction call wasting unnecessary gas fees and might also create confusion and addition checks to understand why a succesful withdraw transaction without any value received.
Owner can still proceed to call this withdraw function even though there isn't any left over prediction fees, wasting unnecessary gas fee
Manual review
To either implement a function where owner can easily enquire the balance of prediction fees available to withdraw or directly implement a check within the withdrawPredictionFees
function as below:
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.