20,000 USDC
View results
Submission Details
Severity: gas

## [G-05] USAGE OF UINTS/INTS SMALLER THAN 32 BYTES (256 BITS) INCURS OVERHEAD

Summary

[G-05] USAGE OF UINTS/INTS SMALLER THAN 32 BYTES (256 BITS) INCURS OVERHEAD

When using elements that are smaller than 32 bytes, your contract's gas usage may be higher. This is because the EVM operates on 32 bytes at a time. Therefore, if the element is smaller than that, the EVM must use more operations in order to reduce the size of the element from 32 bytes to the desired size.

file: /src/interfaces/ISwapRouter.sol
8 uint24 fee;

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/interfaces/ISwapRouter.sol#L8

Support

FAQs

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