function mint(address t, uint256 a) external onlyAdmin(address(redeemer)) returns (bool) {
_mint(t, a);
return true;
}
Which calls the following:
Creator\Erc20.sol
function _mint(address to, uint256 amount) internal virtual {
totalSupply += amount;
// Cannot overflow because the sum of all user
// balances can't exceed the max uint256 value.
unchecked {
balanceOf[to] += amount;
}
emit Transfer(address(0), to, amount);
}
The only exception is overflow: totalSupply += amount.
The check for return value of mint is unneccessary.
Typo
"can can" should be "can".
Tokens/ZcToken.sol Creator/ZcToken.sol 127:
Unused return values can be removed
Creator/VaultTracker.sol VaultTracker/VaultTracker.sol
But the return value of
matureVault()
is not used.Marketplace/MarketPlace.sol
Suggestion: Remove the return line from the function.
ZcToken
mint()
unneccessary checkWhen
mintZcTokenAddingNotional()
is called, the return value ofmint()
in ZcToken is checked.Marketplace\MarketPlace.sol
However, in ZcToken.sol: Tokens\ZcToken.sol
Which calls the following: Creator\Erc20.sol
The only exception is overflow:
totalSupply += amount
.The check for return value of
mint
is unneccessary.Suggestion: Just call
mint()
directly: