Ordering the checks in low to high gas cost and probability of fail we can save some gas
if (buyer == address(0)) revert Escrow__BuyerZeroAddress(); (12 gas)
if (seller == address(0)) revert Escrow__SellerZeroAddress(); (12 gas)
if (address(tokenContract) == address(0)) revert Escrow__TokenZeroAddress(); (16 gas)
if (tokenContract.balanceOf(address(this)) < price) revert Escrow__MustDeployWithTokenBalance(); (20 gas)
if (arbiterFee >= price) revert Escrow__FeeExceedsPrice(price, arbiterFee); (40 gas)
Foudnry test suit
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.