Any address can be passed as dscAddress
to DSCEngine
's constructor. So there is no guarantee that dscAddress
is the intended stablecoin, or if DSCEngine
is the owner of dscAddress
. In both these cases, the protocol won't work.
If DSCEngine
is not the owner of dscAddress
, then the mint and burn calls will revert as they are guarded by onlyOwner
modifier.
Protocol will break, and no one can mint or burn DSC tokens.
Manual review.
Update DSCEngine's
constructor to deploy DSCEngine
. This ensures that the correct contract is deployed at dscAddress
and the ownership is also set correctly:
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.