Deadline checking is useless when swapping tokens because the deadline is set on block.timestamp.
In SmartVaultV3.sol.swap() deadline is set on block.timestamp:
As you can see the deadline is set to block.timestamp which means that whenever the miner decides to include the transaction in a block, it will be valid at that time, since deadline will be block.timestamp.
The deadline check ensures that the transaction can be executed on time and that the expired transaction reverts.
Missing deadline checks allow pending transactions to be maliciously executed in the future. Without deadline parameters, as a consequence, users can have their operations executed at unexpected times, when the market conditions are unfavorable and they can lose funds from this.
Visual Studio Code
Pass the deadline parameter in swap() 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.