Open code423n4 opened 2 years ago
Meta0xNull
Even though OnlyOwner can Mint token again if input or wallets defaulting to the zero addresses, it still waste of gas.
https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/RocketJoeToken.sol#L37-L38
Manual Review
Requires Addresses is not zero.
require(_to != address(0), "Address Can't Be Zero")
Handle
Meta0xNull
Vulnerability details
Impact
Even though OnlyOwner can Mint token again if input or wallets defaulting to the zero addresses, it still waste of gas.
Proof of Concept
https://github.com/code-423n4/2022-01-trader-joe/blob/main/contracts/RocketJoeToken.sol#L37-L38
Tools Used
Manual Review
Recommended Mitigation Steps
Requires Addresses is not zero.
require(_to != address(0), "Address Can't Be Zero")