40,000 USDC
View results
Submission Details
Severity: gas

Long Revert Strings

Summary

Gas Issue (Might be overlooked due to named imports being more optimal but still worth noting)

Vulnerability Details

c4escrow/Escrow.sol::7 => import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
c4escrow/Escrow.sol::8 => import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
c4escrow/Escrow.sol::9 => import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
c4escrow/EscrowFactory.sol::7 => import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
c4escrow/EscrowFactory.sol::8 => import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

Impact

Issue Information: [G007](https://github.com/byterocket/c4-common-issues/blob/main/0-Gas-Optimizations.md#g007---long-revert-strings

Tools Used

Manual review

Recommendations

Reduce string lenght

Support

FAQs

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