Some checks are redundant and unnecessary, they can be removed to save gas.
DecentralizedStableCoin.sol:60-62: The following code is unnecessary as super.burn(_amount);
eventually triggers ERC20._burn(address, amount) from OpenZeppelin. This function already includes a revert for this condition. As a result, the error message defined on line 43 (DecentralizedStableCoin__BurnAmountExceedsBalance();) can also be removed.
DecentralizedStableCoin.sol:67-72: Those checks are already made by the _mint
function or by the built in uint256 < 0 in solidity.
All the custom errors can be deleted
Significant amount of gas can be saved if the redundant checks are removed.
Manual 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.