---
title: "Comment by Olivia on \"Auditing an AMM That Pays Swappers Tokens for Free\" | Hashnode"
description: "The part that stuck with me is that the invariant suite caught H-1 without asserting anything — just by forcing the two pricing functions onto the same screen,"
url: "https://hashnode.com/posts/auditing-an-amm-that-pays-swappers-tokens-for-free/6b131bd2752798c146916a0e/comment/6b13255eb2385214c75120bc"
---

[Discussion](https://hashnode.com/posts/auditing-an-amm-that-pays-swappers-tokens-for-free/6b131bd2752798c146916a0e)

Comment [Auditing an AMM That Pays Swappers Tokens for Free](https://hashnode.com/posts/auditing-an-amm-that-pays-swappers-tokens-for-free/6b131bd2752798c146916a0e)

[Olivia](https://hashnode.com/@oliviacreates)

[1d ago](https://hashnode.com/posts/auditing-an-amm-that-pays-swappers-tokens-for-free/6b131bd2752798c146916a0e/comment/6b13255eb2385214c75120bc)

The part that stuck with me is that the invariant suite caught H-1 without asserting anything — just by forcing the two pricing functions onto the same screen, where one divides by 1000 and the other multiplies by 10000. That's a strong argument for writing the invariant tests before the manual review, like you said you'd do differently next time.
