DecentralizedStableCoin
mint and burn is onlyOwner, but DSCEngine
deploy the contract set i_dsc
just i_dsc = DecentralizedStableCoin(dscAddress);
.In the initial state, it is obvious that DSCEngine
is not the owner of the DecentralizedStableCoin
, which will cause the functions related to mint and burn related capital operations in DSCEngine
to be unavailable
https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L122
It will cause the functions related to mint and burn related capital operations in DSCEngine
to be unavailable
vs code
Make a deploy contract to make sure the owner of the DecentralizedStableCoin
is DSCEngine
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.