15,000 USDC
View results
Submission Details
Severity: gas

Use of return value for named return variables

Summary

Some named return variables are used but still return keyword used in functions

Vulnerability Details

DSCEngine.sol line 350 has a named return value ->returns (uint256 totalCollateralValueInUsd) However in function return keyword is used unnecessarily line 358

Impact

Gas Savings: This usage of return adds unnecessary operations
Informational: Affects code quality

Tools Used

Manual Analysis

Recommendations

It is recommended to use the named return variables and not used the return keyword in the functions that make use of return variables.

Support

FAQs

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