15,000 USDC
View results
Submission Details
Severity: gas

Inconsistent structure for diametric functions

Summary

Functions have different formats, structure

Vulnerability Details

The function burn() lines 46 in DecentralizedStableCoin.sol does not return a value
However function mint() lines 57 DecentralizedStableCoin.sol returns a boolean

Impact

Informational: This has impact on code quality, code interpretation, code readability, maintanability and auditability

Tools Used

Manual Analysis

Recommendations

It is recommended that such functions that are diametric and appear to do opposite of each other have same format and structure. Therefore either both functions return a boolean value, or both functions must not return anything.

Support

FAQs

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