Open code423n4 opened 2 years ago
We would dispute this on the grounds that we stated that gas savings below 100 gas were not in scope, but we confirm it on the grounds of a code clarity issue.
Agree with the sponsor rationale, ultimately it's a coding style / best practice finding
Handle
Dravee
Vulnerability details
Impact
Using both named returns and a return statement isn't necessary. Removing unused named return variables can reduce gas usage and improve code clarity. To save gas and improve code quality: consider using only one of those.
Proof of Concept
Instances include:
Tools Used
VS Code
Recommended Mitigation Steps
Remove the unused named returns