The burn function in the DecentralizedStableCoin contract can only burn tokens from its own address, but it must burn the token at the desired address
DecentralizedStableCoin.burn architecture is inconsistent
In the DecentralizedStableCoin contract, there are mint and burn functions. In the mint transaction, onlyOwner can mint as many tokens as he wants to the address he wants, while in the burn function he only burns the token in his own wallet.
When we examine whether this is an error since it is not specified in the requested architectural documents or NatSpec comments;
The same mint framework of OnlyOwner is expected in the burn function, this is best practice.
In addition, the fact that the token mint to another address cannot be burned will limit the effect of the burn function.
Based on these, it can be said that the architecture of the burn function is inconsistent and faulty.
burn architecture strength should be increased
Manuel Code review
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.