In the collectUsdcFromSelling function, the contract unnecessarily transfers fees to itself using usdc.safeTransfer(address(this), fees). Since the USDC is already in the contract from the buy function, this self-transfer wastes gas and could potentially cause unexpected reverts if the USDC token implementation doesn't handle self-transfers properly.
Impact
This causes unnecessary gas consumption and could lead to transaction failures if the USDC implementation reverts on self-transfers.
no need
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.
The contest is complete and the rewards are being distributed.