Part 2

Zaros
PerpetualsDEXFoundrySolidity
70,000 USDC
View results
Submission Details
Severity: low
Invalid

Deadline Can Lead To DoS Or Gain Loss

Summary

The UniswapV2Adapter and UniswapV3Adapter use a deadline. However, the deadline is a storage variable set only by the owner. In the case in which it is set in the further future it will lead to gains loss (due to no way of a user cancelling his request) and in the case in which the owner didn't update it before a swap it will lead to a DoS (due to the deadline being in the past).

Impact

Gains loss and DoS.

Tools Used

Manual Review

Recommendations

Either use block.timestamp as a deadline or let users choose their own deadline.

Updates

Lead Judging Commences

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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