DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Redundant inheritance of ERC20 alongside ERC20Burnable

Summary

A redundancy in the inheritance structure, where both ERC20 and ERC20Burnable were being inherited, despite ERC20Burnable already inheriting from ERC20.

Vulnerability Details

The following contract was defined as contract FjordPoints is ERC20, ERC20Burnable {}, leading to unnecessary duplication of inherited properties and methods from ERC20.

Impact

This redundant inheritance increases code complexity without adding any functional benefit, potentially leading to confusion and harder maintenance.

Tools Used

  • Manual review

Recommendations

Remove the redundant inheritance. Modify FjordPoints to inherit only from ERC20Burnable, as it already includes ERC20 functionalities. The correct declaration should be: contract FjordPoints is ERC20Burnable {}.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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