<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.seasonaltokens.org/index.php?action=history&amp;feed=atom&amp;title=AMM_Example</id>
	<title>AMM Example - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.seasonaltokens.org/index.php?action=history&amp;feed=atom&amp;title=AMM_Example"/>
	<link rel="alternate" type="text/html" href="https://wiki.seasonaltokens.org/index.php?title=AMM_Example&amp;action=history"/>
	<updated>2026-04-29T16:33:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.1</generator>
	<entry>
		<id>https://wiki.seasonaltokens.org/index.php?title=AMM_Example&amp;diff=5136&amp;oldid=prev</id>
		<title>Mediawiki at 18:51, 8 December 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.seasonaltokens.org/index.php?title=AMM_Example&amp;diff=5136&amp;oldid=prev"/>
		<updated>2025-12-08T18:51:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:51, 8 December 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l40&quot;&gt;Line 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1 SPRING = 1 POL&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1 SPRING = 1 POL&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/del&gt;3. Buying SPRING With POL&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==&lt;/ins&gt;3. Buying SPRING With POL&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s say a user buys:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s say a user buys:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mediawiki</name></author>
	</entry>
	<entry>
		<id>https://wiki.seasonaltokens.org/index.php?title=AMM_Example&amp;diff=5135&amp;oldid=prev</id>
		<title>Mediawiki: Created page with &quot;=Example: Automated Market Making (AMM) Using Polygon and the Spring Token=  Automated Market Makers (AMMs) such as Uniswap do not use an order book. Instead, the price is determined entirely by the liquidity pool. This page shows a simple example using Polygon (POL) and the Spring token (SPRING) to illustrate how the price changes when you buy or sell.  The goal is to show that:  When you &#039;&#039;&#039;buy&#039;&#039;&#039; Spring, you pay a price slightly &#039;&#039;&#039;higher&#039;&#039;&#039; than the listed price. Whe...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.seasonaltokens.org/index.php?title=AMM_Example&amp;diff=5135&amp;oldid=prev"/>
		<updated>2025-12-08T18:50:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Example: Automated Market Making (AMM) Using Polygon and the Spring Token=  Automated Market Makers (AMMs) such as Uniswap do not use an order book. Instead, the price is determined entirely by the liquidity pool. This page shows a simple example using Polygon (POL) and the Spring token (SPRING) to illustrate how the price changes when you buy or sell.  The goal is to show that:  When you &amp;#039;&amp;#039;&amp;#039;buy&amp;#039;&amp;#039;&amp;#039; Spring, you pay a price slightly &amp;#039;&amp;#039;&amp;#039;higher&amp;#039;&amp;#039;&amp;#039; than the listed price. Whe...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Example: Automated Market Making (AMM) Using Polygon and the Spring Token=&lt;br /&gt;
&lt;br /&gt;
Automated Market Makers (AMMs) such as Uniswap do not use an order book.&lt;br /&gt;
Instead, the price is determined entirely by the liquidity pool.&lt;br /&gt;
This page shows a simple example using Polygon (POL) and the Spring token (SPRING) to illustrate how the price changes when you buy or sell.&lt;br /&gt;
&lt;br /&gt;
The goal is to show that:&lt;br /&gt;
&lt;br /&gt;
When you &amp;#039;&amp;#039;&amp;#039;buy&amp;#039;&amp;#039;&amp;#039; Spring, you pay a price slightly &amp;#039;&amp;#039;&amp;#039;higher&amp;#039;&amp;#039;&amp;#039; than the listed price.&lt;br /&gt;
When you &amp;#039;&amp;#039;&amp;#039;sell&amp;#039;&amp;#039;&amp;#039; Spring, you receive a price slightly &amp;#039;&amp;#039;&amp;#039;lower&amp;#039;&amp;#039;&amp;#039; than the listed price.&lt;br /&gt;
&lt;br /&gt;
This difference is called &amp;#039;&amp;#039;&amp;#039;slippage&amp;#039;&amp;#039;&amp;#039;, and it happens automatically because of the AMM formula.&lt;br /&gt;
&lt;br /&gt;
==1. The Constant Product Formula==&lt;br /&gt;
&lt;br /&gt;
AMMs maintain a constant value:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;x × y = k&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;x&amp;#039;&amp;#039; = amount of POL in the pool&lt;br /&gt;
&amp;#039;&amp;#039;y&amp;#039;&amp;#039; = amount of SPRING in the pool&lt;br /&gt;
&amp;#039;&amp;#039;k&amp;#039;&amp;#039; = constant value that does not change&lt;br /&gt;
&lt;br /&gt;
The listed price shown in the interface is only the spot price, calculated as:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Price = POL in the pool ÷ SPRING in the pool&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
But the moment you make a purchase or a sale, the pool balances shift, and the price moves.&lt;br /&gt;
&lt;br /&gt;
==2. Example Pool==&lt;br /&gt;
&lt;br /&gt;
For this example, suppose the liquidity pool contains:&lt;br /&gt;
&lt;br /&gt;
10 000 POL&lt;br /&gt;
10 000 SPRING&lt;br /&gt;
&lt;br /&gt;
So the listed (spot) price in the interface is:&lt;br /&gt;
&lt;br /&gt;
1 SPRING = 1 POL&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Buying SPRING With POL&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Let’s say a user buys:&lt;br /&gt;
&lt;br /&gt;
1 000 POL worth of SPRING&lt;br /&gt;
&lt;br /&gt;
Before the purchase:&lt;br /&gt;
&lt;br /&gt;
x = 10 000&lt;br /&gt;
y = 10 000&lt;br /&gt;
k = 100 000 000&lt;br /&gt;
&lt;br /&gt;
The user adds 1 000 POL to the pool:&lt;br /&gt;
&lt;br /&gt;
New x = 11 000&lt;br /&gt;
&lt;br /&gt;
We must keep x × y = k, so:&lt;br /&gt;
&lt;br /&gt;
y = k ÷ x&lt;br /&gt;
y = 100 000 000 ÷ 11 000&lt;br /&gt;
y ≈ 9 090.90&lt;br /&gt;
&lt;br /&gt;
This means the pool must end with:&lt;br /&gt;
&lt;br /&gt;
9 090.90 SPRING&lt;br /&gt;
&lt;br /&gt;
So the user receives:&lt;br /&gt;
&lt;br /&gt;
10 000 − 9 090.90 = 909.10 SPRING&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Effective price paid&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The user spent 1 000 POL and received 909.10 SPRING.&lt;br /&gt;
&lt;br /&gt;
Effective price = 1 000 / 909.10 ≈ 1.10 POL per SPRING&lt;br /&gt;
&lt;br /&gt;
Even though the listed price was 1, the user paid 1.10.&lt;br /&gt;
&lt;br /&gt;
This is because the buy order pushed the price upward as the pool balances changed.&lt;br /&gt;
&lt;br /&gt;
==4. Selling SPRING for POL==&lt;br /&gt;
&lt;br /&gt;
Now suppose a user sells:&lt;br /&gt;
&lt;br /&gt;
1 000 SPRING to the pool&lt;br /&gt;
&lt;br /&gt;
Before the sale:&lt;br /&gt;
&lt;br /&gt;
x = 10 000&lt;br /&gt;
y = 10 000&lt;br /&gt;
k = 100 000 000&lt;br /&gt;
&lt;br /&gt;
After the user adds 1 000 SPRING:&lt;br /&gt;
&lt;br /&gt;
New y = 11 000&lt;br /&gt;
&lt;br /&gt;
To keep x × y = k:&lt;br /&gt;
&lt;br /&gt;
x = k ÷ y&lt;br /&gt;
x = 100 000 000 ÷ 11 000&lt;br /&gt;
x ≈ 9 090.90 POL&lt;br /&gt;
&lt;br /&gt;
So the user receives:&lt;br /&gt;
&lt;br /&gt;
10 000 − 9 090.90 = 909.10 POL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Effective price received&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The user sold 1 000 SPRING and received 909.10 POL.&lt;br /&gt;
&lt;br /&gt;
Effective price = 909.10 / 1 000 = 0.909 POL per SPRING&lt;br /&gt;
&lt;br /&gt;
Even though the listed price was 1, the user received only 0.909.&lt;br /&gt;
&lt;br /&gt;
This is because selling pushes the price downward.&lt;br /&gt;
&lt;br /&gt;
==5. Why Does This Happen?==&lt;br /&gt;
&lt;br /&gt;
AMMs do not allow traders to buy or sell at the exact spot price unless their trade is extremely small relative to the pool.&lt;br /&gt;
&lt;br /&gt;
Every trade changes the pool ratios:&lt;br /&gt;
&lt;br /&gt;
Buying SPRING ↑ increases POL in the pool → decreases SPRING in the pool → price rises&lt;br /&gt;
Selling SPRING ↓ increases SPRING in the pool → decreases POL in the pool → price falls&lt;br /&gt;
&lt;br /&gt;
This is not a fee or a penalty.&lt;br /&gt;
It is simply how the AMM formula works.&lt;br /&gt;
&lt;br /&gt;
==6. Summary==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;You never trade at the listed price.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Small trades have very little price impact.&lt;br /&gt;
Large trades move the price significantly.&lt;br /&gt;
Bigger liquidity pools = less slippage.&lt;br /&gt;
&lt;br /&gt;
AMMs reward liquidity providers for taking the opposite side of trades, and this mechanism keeps markets running without order books.&lt;/div&gt;</summary>
		<author><name>Mediawiki</name></author>
	</entry>
</feed>