Closed code423n4 closed 2 years ago
Czar102
In RocketJoeToken, the _beforeTokenTransfer() function declares _amount, but never uses it. This leads to a decrease in code readability and additional, redundant stack operations.
RocketJoeToken
_beforeTokenTransfer()
_amount
function _beforeTokenTransfer( address _from, address _to, uint256 _amount ) internal virtual override
Manual analysis Solidity compiler
Consider not declaring the variable in the argument list.
Duplicate of #152
Invalid. Function signature should match the parent.
Handle
Czar102
Vulnerability details
Impact
In
RocketJoeToken
, the_beforeTokenTransfer()
function declares_amount
, but never uses it. This leads to a decrease in code readability and additional, redundant stack operations.Proof of Concept
Tools Used
Manual analysis Solidity compiler
Recommended Mitigation Steps
Consider not declaring the variable in the argument list.