In the sellProfits function, there is no value for amountOutMinimum and sqrtPriceLimitX96.
as mentioned in uniswap docs:
amountOutMinimum: For a real deployment, this value should be calculated using our SDK or an onchain price oracle – this helps protect against getting an unusually bad price for a trade due to a front-running sandwich or another type of price manipulation
sqrtPriceLimitX96: This value can be used to set the limit for the price the swap will push the pool to, which can help protect against price impact or for setting up logic in a variety of price-relevant mechanisms.
user can lose his money
manual review
don't use 0 for these 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.