gas

Consider disabling renounceOwnership()

Reward

Total

24.49 USDC

Selected
24.49 USDC
Selected Submission

Consider disabling renounceOwnership()

Severity

Gas Optimization / Informational

Relevant GitHub Links

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/d1c5501aa79320ca0aeaa73f47f0dbc88c7b77e2/src/DecentralizedStableCoin.sol#L39

Summary

If the plan for your project does not include eventually giving up all ownership control, consider overwriting OpenZeppelin's Ownable's renounceOwnership() function in order to disable it.

Tools Used

Manual Review