40,000 USDC
View results
Submission Details
Severity: gas
Valid

`>=`/`<=` costs less gas than `>`/`<`

Summary

>=/<= costs less gas than >/<

Vulnerability Details

The compiler uses opcodes GT and ISZERO for solidity code that uses >, but only requires LT for >=, which saves 3 gas

File: /src/Escrow.sol
44: if (tokenContract.balanceOf(address(this)) < price) revert Escrow__MustDeployWithTokenBalance();
112: if (totalFee > tokenBalance) {
119: if (buyerAward > 0) {
122: if (i_arbiterFee > 0) {
126: if (tokenBalance > 0) {

Impact

Tools Used

Recommendations

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.