No slippage protection in Fees.sellProfits() can lead to loss of funds for users and bad reputation.
The Fees.sellProfits() function swaps loan tokens for collateral tokens from liquidations. So it should be called only by a lender but this is not the issue here. The uniswap V3 SwapRouter is imported to handle the above mentioned swap. However amountOutMinimum is set to 0. This basically means that there is no slippage protection at all and this could result in a significant loss of funds as not having slippage protection is an excellent environment for front runs and sandwich attacks. Setting amountOutMinimum to 0 literally means that the minimum amount of tokens that the user is willing to get from the swap is 0.
Loss of funds , bad reputation
Manual review
Consider applying slippage parameters
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.