sherlock-audit / 2023-12-flatmoney-judging

11 stars 9 forks source link

jennifer37 - Wrong order expired timestamp calculation #101

Closed sherlock-admin closed 8 months ago

sherlock-admin commented 8 months ago

jennifer37

medium

Wrong order expired timestamp calculation

Summary

Wrong order expired timestamp calculation

Vulnerability Detail

In FlatcoinVault's description, maxExecutabilityAge means maximum amount of time that can expire between trade announcement and execution.

Impact

Unexpected order expired check compared with origin design.

Code Snippet

https://github.com/sherlock-audit/2023-12-flatmoney/blob/main/flatcoin-v1/src/DelayedOrder.sol#L674-L680

Tool used

Manual Review

Recommendation

Duplicate of #165

sherlock-admin commented 8 months ago

1 comment(s) were left on this issue during the judging contest.

takarez commented:

invalid