15,000 USDC
View results
Submission Details
Severity: gas

Shorter Contract Naming

Summary

Contract for StableCoin has a long name

Vulnerability Details

The contract name DecentralizedStableCoin is long and repetative. The documentation, project purpose and its information is assumed will already be informative that the project is a StableCoin. Therefore there is no need to include StableCoin in the name.

Impact

Informational: This affects code readability issues. Take for example the Custom Errors which are appended with contract name and become very long e.g DecentralizeStableCoin.sol line 41
error DecentralizedStableCoin__BurnAmountExceedsBalance();

Tools Used

Manual Analysis

Recommendations

It may be considered to ensure Contract names are short, concise, precise as informative and descriptive as possible. e.g DSC is sufficient with documentation in code and outside explaining DSC ==> Decentralized StableCoin

Support

FAQs

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