Skip to content

The ownership of the DecentralizedStableCoin.sol .... #167

Answered by cromewar
Devshenoyprasad asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Devshenoyprasad
Well that is a really good question, let me try to answer it:
This ownership assignment typically happens at the time of deployment or shortly after, when a function is called to set the owner. The contract deployer would call a function to set DSCEngine as the owner of the DecentralizedStableCoin. This function would likely be protected by the onlyOwner modifier to ensure that only the deployer (initial owner) can change the ownership to DSCEngine.
While this design gives DSCEngine a certain level of control over the DecentralizedStableCoin, it's important to note that this isn't truly decentralized. A truly decentralized stablecoin wouldn't have a single owner ent…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@Devshenoyprasad
Comment options

@pacelliv
Comment options

@Devshenoyprasad
Comment options

@pacelliv
Comment options

Answer selected by Devshenoyprasad
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants