20,000 USDC
View results
Submission Details
Severity: medium
Valid

Use of block.timestamp for swap

Summary

Because block.timestamp is used, the validator is under no obligation to broadcast the transaction in a timely manner.

Vulnerability Details

See Impact.

Impact

Because the transaction could be completed at a later time, the pool conditions may change beyond initial expectations.

For additional information, look at this blog:

https://blog.bytes032.xyz/p/why-you-should-stop-using-block-timestamp-as-deadline-in-swaps

Tools Used

Manual

Recommendations

Pass in a default deadline as a parameter.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.