Use of block.timestamp for deadline of a swap can lead to loss for a user.
The deadline of a swap is set to block.timestamp in the swap function. What this means is that a validator can hold the swap transaction and the block the transaction is eventually put into will be the block.timestamp.
By this, validators determine the timeframe within which a swap should be included in a blockchain and not the user.
Swap may not be immediate and this can result to loss for a user since crypto is volatile.
Manual review
I suggest use of a deadline parameter where users can input deadline they want.
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.