In Fees.sol, the block timestamp has been hardcoded as the ExactInputSingleParams deadline, which can cause the transaction to execute at an undesired price, leading to a potential loss of funds.
In Fees.sol:36, the code assigns the block timestamp as the deadline in the ISwapRouter.ExactInputSingleParams object. This means that the transaction is coupled to the block inclusion time, which is determined by the validator. The transaction may consequently remain in the mempool until a validator includes it in a new block, and by then, the price associated with the transaction may not be as initially intended, potentially causing loss of funds. Using a hardcoded block.timestamp effectively means no deadline.
Potential loss of funds in case the execution of the transaction happens at an unfavorable price.
Manual Review
To mitigate this vulnerability, it is recommended to enable the user to provide the deadline.
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.