The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

The `protocol` state variable is declared but not utilized in the contract.

Vulnerability Details

Unused State Variables

Impact

The protocol state variable is declared but not utilized in the contract. Unused variables may result in increased deployment and execution costs without providing any functionality.

Proof of Concept

The vulnerable code segment:

address payable private immutable protocol;

The protocol variable is declared but not used anywhere in the contract, indicating redundancy.

Tools Used

Manual Code Review

Recommendations

To optimize deployment and execution costs, it is advisable to remove the unused protocol variable if it serves no purpose in the contract. This can be achieved by removing the variable declaration and any related code snippets that involve it. Removing unused variables contributes to cleaner and more efficient contract code.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 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.