https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Fees.sol#L28
Missing approve will result in failed swap.
Mitigations steps:
Use safeApprove to zero first to support tokens implementing ERC20 race condition protection, i.e USDT.
IERC20(_profits).safeApprove(address(UNISWAP_ROUTER), 0);
IERC20(_profits).safeApprove(address(UNISWAP_ROUTER),amount);
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.