---
title: "Discussion on \"Automated Market Makers\" | Hashnode"
description: "Discussion on \"Automated Market Makers\". From Invariants to Price"
url: "https://hashnode.com/posts/amm-math/69b3bafa93256dfc5347fd15"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Automated Market Makers](https://tusharpamnani7.hashnode.dev/amm-math?utm_source=hashnode&utm_medium=feed)

From Invariants to Price

Mar 13 · 6 min read · tusharpamnani7.hashnode.dev  
Read the article

-   [#cryptocurrency](https://hashnode.com/tag/cryptocurrency)
-   [#defi](https://hashnode.com/tag/defi)
-   [#trading](https://hashnode.com/tag/trading)
-   [#mathematics](https://hashnode.com/tag/mathematics)

## Written by

[Tushar Pamnani](https://hashnode.com/@TusharPamnani)

@TusharPamnani · Nagpur, India

  
[View profile](https://hashnode.com/@TusharPamnani)

Dev cum DevRel trying to figure out things.

## Responses 1

Markdown supported · ⌘↵ to post

[love](https://hashnode.com/@alexboom)

[Sep 4](https://hashnode.com/posts/amm-math/69b3bafa93256dfc5347fd15/comment/6a9a1969f9572005eb54f308)

The most valuable part of AMM mathematics is seeing (x \\times y = k) as an invariant rather than a formula to memorize. Once the marginal price (y/x) is compared with the average execution price calculated from reserve changes, slippage and price impact become much easier to understand. A useful follow-up could extend the derivation to include swap fees, explain how arbitrage brings the pool price back toward the external market price, and derive liquidity-provider returns versus simply holding the two assets. Connecting the invariant’s curvature to capital efficiency would make the mechanics even more intuitive.
