40,000 USDC
View results
Submission Details
Severity: gas

Function Selector optimization

Summary

Function selector's can be optimize for calling with lower gas cost

Recommendations

Checked the function selector database and these selectors r unique
in my opinion escrow contract we'r dealin with is not standardized so function selectors can be optimized with below selectors.

--confirmReceipt_HgU() --> 0x000063eb

--initiateDispute_$GW() --> 0x00007484

--resolveDispute_1EO(uint256) --> 0x0000d741

computeEscrowAddress_lN_OBo(bytes,address,uint256,uint256,address,address,address,address,uint256) --> 0x00002892

newEscrow_wmk_vYs(uint256,address,address,address,uint256,bytes32) --> 0x00005e2e

Tools Used

Foundry test suit -> snapshot

finding optimized function selector -> selector-optimizer

checking selector value for collision -> Samsun'z selector database

Support

FAQs

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