DeFiHardhat
35,000 USDC
View results
Submission Details
Severity: low
Invalid

Unused Return Variable in getWellTwaUsdLiquidityFromReserves()

Summary

The getWellTwaUsdLiquidityFromReserves() function declares a return variable usdLiquidity, but it is not used within the function. This can lead to inefficiency and confusion for developers reviewing the code.

Impact

The lack of use of the usdLiquidity return variable in the getWellTwaUsdLiquidityFromReserves() function does not affect the correctness of the function itself, but it introduces unnecessary overhead and can potentially confuse developers who expect the return value to be utilized somewhere within the function.

Tools Used

Manual review

Recommendations

Remove the declaration and assignment of the usdLiquidity variable if it is not intended to be used within the getWellTwaUsdLiquidityFromReserves() function. Alternatively, if the return value is meant to be used, incorporate it into the logic of the function as needed. Unused variables should be avoided to improve code clarity and efficiency.

Updates

Lead Judging Commences

giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational/Invalid

Support

FAQs

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