The deadline parameter for the swap inside the sellProfits is hardcoded to block.timestamp.
The deadline parameter is intended to ensure that the swap can be executed within a specific timeframe. However, using the current timestamp (the value from the block in which the transaction is included) invalidates its purpose, as the deadline would be valid for any block in which the transaction is executed.
Protocols shouldn't set the deadline to block.timestamp as a validator can hold the transaction and the block it is eventually put into will be block.timestamp, so this offers no protection.
More on this
Manual review
Consider providing a deadline value off-chain, as a function argument.
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.