Steadefi

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

Redundant import of Ownable contract

Summary

The mentioned contracts import both Ownable and Ownable2Step from the OpenZeppelin contracts. However, a redundancy is present, as Ownable2Step itself imports Ownable. This redundancy in imports is not only unnecessary but also results in higher gas costs during deployment and usage.

Vulnerability Details

The issue arises from an import redundancy in the contract. Specifically, contracts import both Ownable and Ownable2Step contracts. However, Ownable2Step internally imports Ownable, making the direct import of Ownable redundant.

Impact

It leads to increased gas costs when deploying and interacting with the contract.

Tools Used

Manual review.

Recommendations

To optimize the contract and reduce gas costs, remove the redundant import of Ownable.sol.

Updates

Lead Judging Commences

hans Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Gas optimizations

Support

FAQs

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