Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M-07 MitigationConfirmed #17

Open
c4-bot-1 opened this issue Sep 16, 2024 · 2 comments
Open

M-07 MitigationConfirmed #17

c4-bot-1 opened this issue Sep 16, 2024 · 2 comments
Labels
confirmed for report This issue is confirmed for report mitigation-confirmed MR-M-07 satisfactory satisfies C4 submission criteria; eligible for awards

Comments

@c4-bot-1
Copy link
Contributor

Lines of code

Vulnerability details

The finding M-07: The traceEnd in BackingManager isn't updating correctly was fully mitigated, and the availability impact on Dutch auctions is no longer present.

As an additional suggestion, possibly with "low" severity, we would like to point out that the new implementation:

        delete tokensOut[sell];
        trade = super.settleTrade(sell); // nonReentrant

        TradeKind kind = trade.KIND();
        if (tradeEnd[kind] > block.timestamp) tradeEnd[kind] = uint48(block.timestamp);

does not follow the check-effect-interaction pattern. While we don't believe there is opportunity for a reentrancy exploit (because tradeEnd would prevent a dangerous call to rebalance in any case), we would recommend moving the tradeEnd update before the super.settleTrade call which contains interactions, like done for the delete tokensOut[sell] statement.

@c4-judge
Copy link

thereksfour marked the issue as satisfactory

@c4-judge c4-judge added the satisfactory satisfies C4 submission criteria; eligible for awards label Sep 18, 2024
@c4-judge
Copy link

thereksfour marked the issue as confirmed for report

@c4-judge c4-judge added the confirmed for report This issue is confirmed for report label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed for report This issue is confirmed for report mitigation-confirmed MR-M-07 satisfactory satisfies C4 submission criteria; eligible for awards
Projects
None yet
Development

No branches or pull requests

2 participants