The transferErcTokens function contains an unnecessary duplicate zero address check, wasting gas.
The transferErcTokens function checks if the to address is equal to the zero address twice, which is unnecessary and results in wasted gas.
Repeatedly checking the same condition in the function consumes more gas than necessary, increasing the cost for users and reducing the overall efficiency of the contract.
Solidity, Foundry.
Remove the duplicate zero address check in the transferErcTokens function to save gas and improve efficiency.
Example:
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.