The transferErcTokens function in the contract contains a duplicate check for the zero address of the to parameter, which is unnecessary and wastes gas.
In the transferErcTokens function, there are two identical checks for whether the to address is zero:
The second check is redundant as the first check already ensures that the to address is not zero.
The duplicate check results in:
Unnecessary gas consumption
Code bloat
Reduced code maintainability
Manual code review
Remove the second zero address check
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.