40,000 USDC
View results
Submission Details
Severity: gas

gas in constructor

Summary

if (tokenContract.balanceOf(address(this)) < price) revert Escrow__MustDeployWithTokenBalance();
is not needed because newEscrow function in the EscrowFactory already takes the price and transfer it to the computed address.

Tools Used

manual.

Recommendations

remove if(tokenContract.balanceOf(address(this)) < price)
and error Escrow__MustDeployWithTokenBalance();

Support

FAQs

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