In the resolveDispute()
you can prevent do a external call for get de balance token of the contract.
How the buyer sets the price and is the one who pays when it is created. The value does not change. So, you can get the value of tokenBalance using the local function getPrice()
.
Optimization gas, impact is low.
Manual code review
Change the code:
Line 110/ Escrow.sol
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.