[GAS-8] Splitting require() statements that use && saves gas
Summary
Vulnerability Detail
Using multiple require statements is cheaper than using && multiple
check combinations. There are more advantages, such as easier to read
code and better coverage reports.
Mammoth Laurel Nightingale
Low/Info
[GAS-8] Splitting require() statements that use && saves gas
Summary
Vulnerability Detail
Using multiple require statements is cheaper than using && multiple check combinations. There are more advantages, such as easier to read code and better coverage reports.
Ref: https://code4rena.com/reports/2023-01-ondo#g-15-splitting-require-statements-that-use--saves-gas---saves-8-gas-per-
Impact
Code Snippet
Instances (2):
Tool used
Manual Review
Recommendation