Remove the returns (bool) from the mint function because, it always returns true and is not necessary.
Remove returns(bool) from the below function =>
function mint(address _to, uint256 _amount) external onlyOwner returns (bool) {
if (_to == address(0)) {
revert DecentralizedStableCoin__NotZeroAddress();
}
if (_amount <= 0) {
revert DecentralizedStableCoin__MustBeMoreThanZero();
}
_mint(_to, _amount);
return true;
}
The return value is not necessary and removing it will save some gas. And, it will also make the code cleaner and easier to read as it removes an unnecessary line of code.
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.