40,000 USDC
View results
Submission Details
Severity: gas

i_arbiterFee

Summary

uint256 for all integer values is not always gas-efficient. If you know that a value will never exceed the maximum value of a uint8, uint16, uint32 you can use smaller types. For example, if arbiterFee will never exceed uint32, use uint32 instead of uint256.

Vulnerability Details

From Escrow.sol =>
uint256 private immutable i_arbiterFee; change to => uint32 private immutable i_arbiterFee;

Impact

i_arbiterFee cannot exceed uint32 , so use uint32 instead of uint256.

Tools Used

AI

Recommendations

Support

FAQs

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