15,000 USDC
View results
Submission Details
Severity: high

DecentralizedStableCoin must be deployed from DSCEngine

Summary

as DecentralizedStableCoin is Ownable it must be deployed from DSCEngine.

Vulnerability Details

In the current implementation, the user deploys DecentralizedStableCoin and adds an address in DSCEngine constructor.
DecentralizedStableCoin is Ownable and use onlyOwner for minting and burning, so it must be deployed from DSCEngine.

Impact

DSCEngine wouldn't be the owner of DecentralizedStableCoin and couldn't mint or burn.

Tools Used

Manual review

Recommendations

deploy DecentralizedStableCoin from DSCEngine.

Support

FAQs

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