Fixed fee level is used when swap tokens on Uniswap.
In Fees contract, sellProfits(…) funtion is used to swap loan tokens for collateral tokens from liquidations, when constructs ISwapRouter.ExactInputSingleParams, a fixed fee 3000 (0.3%) level is used:
However, not all pools in Uniswap are created with fee level being 3000, for example, fee level of XMON / ETH
(0x59b4bb1f5d943cf71a10df63f6b743ee4a4489ee) on Mainnet is 10000 (1%), fee level of WETH / BOB (0x1a54ae9f662b463f8d432482975c17e51518b50d) on Optimism is 500 (0.05%).
Using fixed fee level when swap tokens may lead to some fee tokens being locked in contract.
Manual Review
Passing fee level to sellProfits(…) function as parameter:
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.