Anyone can call the sellProfits
function and although the receiver is the contract itselfs, an attacker can take advantage and decrease the profit generated.
Because the sellProfits function can be called by anyone, a malicious actor can take advantage of this, since the amountOutMinimum
is set to 0, as this parameter is a measure of protection against market fluctuations and price changes. price during the transaction allowing the possibility of a sandwich attack, manipulating the price before the transaction takes place and the attacker caught from this.
Directly in the fees collected that would be the profit of the protocol
Manual code review
Prevent anyone from calling this function
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.