A function could potentially face gas limit issues if there are many token transfers, especially if the number of recipients or the size of the token balances is substantial.
In the resolveDispute
function there are multiple token transfer being made, which could lead to gas cost issues since gas cost of token transfers increases with the number of recipients and the size of the token balances being transferred.
Manual Review
One optimisation is to consolidate token transfers whenever possible. Instead of performing multiple token transfers for the buyerAward, arbiterFee, and remaining tokenBalance, you can batch these transfers into a single operation. This way, you reduce the number of external function calls, thus saving gas.
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.