Hardcoded fee rate while swapping tokens through uniswap router.
In Fees contract, there is a use of Uniswap Router which uses ExactInputSingleParams method call to swap loan tokens for collateral tokens. But the value of fee is hardcoded to be 3000 which means fee rate is 0.3%.
Here _profits token can be any token so the swapping would happen on different Uniswap pools, the problem is that not all the pools use fee rate of 3000, results in pool not found and transaction reverts.
Some _profits tokens cannot be swapped for WETH and those tokens are essentially locked in the Fees contract.
Manual Review
Please consider to allower caller pass fee parameter when calls the sellProfits method.
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.