The resolveDispute function includes so many condition checks that are not needed.The if-else checks with buyerAward and i_arbiterFee variables are not needed. This is because the safeTransfer function already contains some conditions to handle zero values.
Remove the if-else checks and write below 3 simple lines of code =>
i_tokenContract.safeTransfer(i_buyer, buyerAward);
i_tokenContract.safeTransfer(i_arbiter, i_arbiterFee);
i_tokenContract.safeTransfer(i_seller, tokenBalance);
Gas cost will be reduced and the code will be clean.
Manual Review
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.