deadline is set as block.timestamp
Fees.sol line 36-> deadline = block.timestamp
ISwapRouter.ExactInputSingleParams memory params = ISwapRouter
.ExactInputSingleParams({
tokenIn: _profits,
tokenOut: WETH,
fee: 3000,
recipient: address(this),
deadline: block.timestamp,
amountIn: amount,
amountOutMinimum: 0,
sqrtPriceLimitX96: 0
});
block.timestamp is open to attack by malicious validators
High: Validator may hold transaction and eventually even if in later blocks block.timestamp will still be valid
See resource past report "Code4rena finding report on use block.timestamp" with more information
See here resource stating "Protocols shouldn't set the deadline to block.timestamp" for more information
Manual Analysis
It is recommended not to use block.timestamp as 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.