<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	 xmlns:friends="wordpress-plugin-friends:feed-additions:1" >

<channel>
	<title>AMMs &#8211; thanksmia</title>
	<atom:link href="https://thanksmianews.com/tag/amms/feed/" rel="self" type="application/rss+xml" />
	<link>https://thanksmianews.com</link>
	<description>thanksmianews.com</description>
	<lastBuildDate>Sat, 01 Aug 2026 06:00:21 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://i0.wp.com/thanksmianews.com/wp-content/uploads/2024/12/cropped-Image1.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>AMMs &#8211; thanksmia</title>
	<link>https://thanksmianews.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">251029917</site>	<item>
		<title>Dynamic Fees in AMMs: When the Signal Matters</title>
		<link>https://thanksmianews.com/dynamic-fees-in-amms-when-the-signal-matters/</link>
					<comments>https://thanksmianews.com/dynamic-fees-in-amms-when-the-signal-matters/#respond</comments>
		
		<dc:creator><![CDATA[thanksmia]]></dc:creator>
		<pubDate>Sat, 01 Aug 2026 06:00:21 +0000</pubDate>
				<category><![CDATA[Cryptonews]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[AMMs]]></category>
		<category><![CDATA[Dynamic]]></category>
		<category><![CDATA[Fees]]></category>
		<category><![CDATA[Matters]]></category>
		<category><![CDATA[Signal]]></category>
		<guid isPermaLink="false">https://thanksmianews.com/?p=133377</guid>

					<description><![CDATA[<p>Part I asked whether an AMM surface formed. Part II ran pool state forward. Part III contrasted reserves with book</p>
<p>Der Beitrag <a rel="nofollow" href="https://thanksmianews.com/dynamic-fees-in-amms-when-the-signal-matters/">Dynamic Fees in AMMs: When the Signal Matters</a> erschien zuerst auf <a rel="nofollow" href="https://thanksmianews.com">thanksmia</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="text-align:center"><img fetchpriority="high" decoding="async" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" fifu-data-sizes="auto" fifu-data-src="https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1" fifu-data-srcset="https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=75&amp;resize=75&amp;ssl=1 75w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=100&amp;resize=100&amp;ssl=1 100w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=150&amp;resize=150&amp;ssl=1 150w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=240&amp;resize=240&amp;ssl=1 240w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=320&amp;resize=320&amp;ssl=1 320w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=500&amp;resize=500&amp;ssl=1 500w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=640&amp;resize=640&amp;ssl=1 640w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=800&amp;resize=800&amp;ssl=1 800w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1024&amp;resize=1024&amp;ssl=1 1024w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1280&amp;resize=1280&amp;ssl=1 1280w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1600&amp;resize=1600&amp;ssl=1 1600w" fifu-lazy="1" title="Dynamic Fees in AMMs: When the Signal Matters" width="1024" height="576"  class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Dynamic Fees in AMMs: When the Signal Matters" srcset="https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?w=1024&amp;ssl=1 1024w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?resize=300%2C169&amp;ssl=1 300w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?resize=768%2C432&amp;ssl=1 768w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?resize=600%2C338&amp;ssl=1 600w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?resize=480%2C270&amp;ssl=1 480w, https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?resize=133%2C75&amp;ssl=1 133w" sizes="(max-width: 800px) 100vw, 800px" data-attachment-id="133378" data-permalink="https://thanksmianews.com/dynamic-fees-in-amms-when-the-signal-matters/dynamic-fees-in-amms-when-the-signal-matters-png/" data-orig-file="https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?fit=1024%2C576&amp;ssl=1" data-orig-size="1024,576" data-comments-opened="1" data-image-title="Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?fit=800%2C450&amp;ssl=1" /></div><p> 
</p>
<blockquote><p><em>Part I</em><em> asked whether an AMM surface formed. </em><em>Part II</em><em> ran pool state forward. </em><em>Part III</em><em> contrasted reserves with book depth. This piece runs the AMM defense layer: fixed fee vs state-responsive fee.</em></p></blockquote>
<figure><figcaption><strong>Overview.</strong> Campbell-style CPMM simulation with interchangeable fee policies. Illustrative parameters; not calibrated to a live pool.</figcaption></figure>
<p>Part III ended on dynamic fees as evidence that the fixed-fee pool was under-defended-not as proof that hooks beat a book. <a rel="nofollow noopener" href="https://docs.uniswap.org/contracts/v4/concepts/dynamic-fees" target="_blank">Uniswap v4 dynamic fees</a> make the defense layer callable: a hook can read pool state and set the fee per swap.</p>
<p>The design question is narrower than “can the hook observe more fields?” Under this constant-function market maker (CFMM) setup — specifically a constant-product market maker (CPMM) — does an extra field add information, or only rescale a response the invariant already implies?</p>
<p>I put <a rel="nofollow noopener" href="https://arxiv.org/abs/2508.08152" target="_blank">Campbell <em>et al.</em> (2025)</a> and <a rel="nofollow noopener" href="https://arxiv.org/abs/2506.02869" target="_blank">Baggiani <em>et al.</em> (2025)</a> into the same <a rel="nofollow noopener" href="https://github.com/egpivo/amm-lab" target="_blank">Rust lab</a>. Campbell <em>et al.</em> supply the fixed-fee LP objective and the routing mechanism: when CEX trading is costly, a stale AMM can still attract fundamental flow by charging a low enough fee. Baggiani <em>et al.</em> supply the policy question — whether observation-based fees can beat a static optimum. Four policies share one FeePolicy interface and the same Monte Carlo paths: fixed 6 bps, fixed 10 bps, oracle-gap, and inventory-gap.</p>
<p>The bridge is market-making control. Campbell <em>et al.</em> define what the pool is trying to protect: fee revenue net of stale-price loss. Baggiani <em>et al.</em> change the fee from a scalar parameter into a policy over market state. A CLOB maker does this through spreads, size, cancels, and exposure limits when flow turns toxic. A programmable AMM cannot reproduce the whole book, but fee is its smallest spread-like defense.</p>
<h3>The Campbell baseline</h3>
<p>This is a baseline check, not a fee-design breakthrough. A CEX or oracle reference moves before the pool price does. Arbitrage closes the gap; the LP absorbs LVR. Campbell <em>et al.</em> formalize that setting with arbitrageurs, fundamental traders, and a passive LP. Hedged PnL is fee revenue minus tracking error.</p>
<p>In the lab, oracle_gap_bps is pool price vs CEX price in bps-the exposure window before arb trades. arb_delta closes the gap each step; hedged_pnl records what the LP kept net of LVR.</p>
<p>With a 10 bps CEX fee, the optimum AMM fee lands near <strong>6 bps</strong>. Higher fees extract more per arb trade but widen the no-trade band and lose fundamental flow. I reproduced the sweep in Rust-1 to 100 bps on one GBM path, then 500-path Monte Carlo.</p>
<figure><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" fifu-data-sizes="auto" fifu-data-src="https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1" fifu-data-srcset="https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=75&amp;resize=75&amp;ssl=1 75w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=100&amp;resize=100&amp;ssl=1 100w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=150&amp;resize=150&amp;ssl=1 150w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=240&amp;resize=240&amp;ssl=1 240w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=320&amp;resize=320&amp;ssl=1 320w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=500&amp;resize=500&amp;ssl=1 500w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=640&amp;resize=640&amp;ssl=1 640w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=800&amp;resize=800&amp;ssl=1 800w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1024&amp;resize=1024&amp;ssl=1 1024w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1280&amp;resize=1280&amp;ssl=1 1280w, https://i3.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_137_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1600&amp;resize=1600&amp;ssl=1 1600w" fifu-lazy="1" alt="Panel A: hedged PnL vs AMM fee on a single GBM path. Panel B: Monte Carlo mean with shaded ±1 std band, zoomed to 1–30 bps."  /><figcaption><strong>Fig. 1.</strong> The fixed-fee optimum stays near 6 bps under this setup. Going below it leaves LVR uncovered; going above it prices out flow. Panel A: one GBM path. Panel B: 500-path mean (±1 std, 1–30 bps). Source: <a rel="nofollow noopener" href="https://github.com/egpivo/amm-lab" target="_blank">amm-lab</a>.</figcaption></figure>
<p>Below 6 bps, arb keeps trading but the fee does not cover LVR. Above 6 bps, the pool keeps some arb revenue but loses fundamental flow to the CEX.</p>
<h3>Fee as a policy</h3>
<p>Dynamic fees are control laws over observations. Production hooks override the fee in beforeSwap or via updateDynamicLPFee. The simulation uses the same surface: observe state, choose fee, run arb and fundamental trades.</p>
<p>FeeObservation carries oracle gap (bps), inventory skew, and recent realized volatility. In this comparison, realized volatility is recorded but not used in the fee rule. Each step calls policy.fee(&#038;obs) before trades execute.</p>
<p>FixedFeePolicy reproduces the Campbell baseline. In these runs, fee is stored as a fraction ( 1 bps = 0.0001, so base_fee = 0.0006). The two dynamic policies are:</p>
<ul>
<li><strong>OracleGapFeePolicy:</strong> fee = base_fee + 0.04 × |oracle_gap_bps| / 10 000, clamped to [1, 20] bps</li>
<li><strong>InventoryGapFeePolicy:</strong> fee = base_fee + 0.01 × |inventory_skew|, clamped to [1, 20] bps</li>
</ul>
<p>Oracle-gap charges more when the pool has drifted from the CEX. Inventory-gap charges more when reserve composition is imbalanced. Same interface; different stated signal.</p>
<h3>Oracle-gap beats fixed 6 bps on every path</h3>
<p>Across 500 paired Monte Carlo paths, oracle-gap beat fixed 6 bps on <strong>every path</strong>: mean Δ hedged PnL <strong>+15.2</strong>, minimum <strong>+8</strong>.</p>
<figure><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" fifu-data-sizes="auto" fifu-data-src="https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1" fifu-data-srcset="https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=75&amp;resize=75&amp;ssl=1 75w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=100&amp;resize=100&amp;ssl=1 100w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=150&amp;resize=150&amp;ssl=1 150w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=240&amp;resize=240&amp;ssl=1 240w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=320&amp;resize=320&amp;ssl=1 320w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=500&amp;resize=500&amp;ssl=1 500w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=640&amp;resize=640&amp;ssl=1 640w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=800&amp;resize=800&amp;ssl=1 800w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1024&amp;resize=1024&amp;ssl=1 1024w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1280&amp;resize=1280&amp;ssl=1 1280w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_181_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1600&amp;resize=1600&amp;ssl=1 1600w" fifu-lazy="1" alt="Dot-interval chart showing hedged PnL p05–mean–p95 for four policies across 500 paths."  /><figcaption><strong>Fig. 2.</strong> Fixed 10 bps underperforms for the same reason as Fig. 1: it overcharges and loses flow. Both dynamic policies beat fixed 6 bps, but only oracle-gap delivers material lift (p05–mean–p95, 500 paths).</figcaption></figure>
<p>The comparison is paired by seed: fixed, oracle-gap, and inventory-gap run on the same GBM path and demand draws. The delta distribution is the useful statistic because it asks what changed when only the fee rule changed.</p>
<figure><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" fifu-data-sizes="auto" fifu-data-src="https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1" fifu-data-srcset="https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=75&amp;resize=75&amp;ssl=1 75w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=100&amp;resize=100&amp;ssl=1 100w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=150&amp;resize=150&amp;ssl=1 150w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=240&amp;resize=240&amp;ssl=1 240w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=320&amp;resize=320&amp;ssl=1 320w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=500&amp;resize=500&amp;ssl=1 500w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=640&amp;resize=640&amp;ssl=1 640w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=800&amp;resize=800&amp;ssl=1 800w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1024&amp;resize=1024&amp;ssl=1 1024w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1280&amp;resize=1280&amp;ssl=1 1280w, https://i1.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_714_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1600&amp;resize=1600&amp;ssl=1 1600w" fifu-lazy="1" alt=""  /><figcaption><strong>Fig. 3.</strong> Same sign, different magnitude: oracle-gap adds +8 to +22 per path; inventory-gap adds +0.5 to +2.5 (500 seeds). The policy ranking is not close.</figcaption></figure>
<p>Inventory-gap also beat fixed 6 bps on every path, but mean gain was only <strong>+1.8</strong> -roughly one-eighth of oracle-gap’s advantage.</p>
<h3>Inventory skew collapses into oracle gap</h3>
<p>Inventory skew is not a new signal here. In a CPMM, both fields are monotone functions of the same quantity-deviation between AMM and CEX price:</p>
<pre>oracle_gap_bps  = (P_amm − P_cex) / P_cex × 10 000<br>inventory_skew  = (P_amm − P_cex) / (P_amm + P_cex)</pre>
<p>When arb keeps the pool near the CEX price, P_amm ≈ P_cex and the skew denominator is approximately 2 × P_cex:</p>
<pre>inventory_skew ≈ oracle_gap_bps / 20 000</pre>
<figure><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" fifu-data-sizes="auto" fifu-data-src="https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1" fifu-data-srcset="https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=75&amp;resize=75&amp;ssl=1 75w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=100&amp;resize=100&amp;ssl=1 100w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=150&amp;resize=150&amp;ssl=1 150w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=240&amp;resize=240&amp;ssl=1 240w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=320&amp;resize=320&amp;ssl=1 320w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=500&amp;resize=500&amp;ssl=1 500w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=640&amp;resize=640&amp;ssl=1 640w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=800&amp;resize=800&amp;ssl=1 800w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1024&amp;resize=1024&amp;ssl=1 1024w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1280&amp;resize=1280&amp;ssl=1 1280w, https://i2.wp.com/thanksmianews.com/wp-content/uploads/2026/07/1785564013_475_Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png?ssl=1&amp;w=1600&amp;resize=1600&amp;ssl=1 1600w" fifu-lazy="1" alt="Scatter plot of oracle gap (bps) vs inventory skew × 10 000, showing near-perfect linear relationship."  /><figcaption><strong>Fig. 4.</strong> These variables are effectively the same coordinate in this model. Near-linear fit (slope ≈ 0.5, Pearson r = 1.000 to four decimals) shows inventory-skew policy is mostly oracle-gap policy with lower gain.</figcaption></figure>
<p>InventoryGapFeePolicy applies the same signal at lower gain—the step-level audit in the repo shows why. The +1.8 mean gain is amplitude, not a different signal.</p>
<p>This is specific to constant-product pools where arb continuously aligns pool price with the external reference. In pegged-pool designs, reserve imbalance can move while marginal price stays near peg, so inventory can carry information not captured by current oracle gap. Curve’s offpeg_fee_multiplier is aimed at that regime, not at CPMM-style rescaling.</p>
<h3>What a hook should test next</h3>
<p>If the feature is reserve-derived in CPMM, assume redundancy until shown otherwise. Current oracle gap is the primitive; inventory skew, reserve ratio, and pool price are functions of it. Adding them does not expand the information set. It rescales the response.</p>
<p>The next candidate is not another reserve-derived field. It is path-derived or external:</p>
<ul>
<li><strong>Realized volatility: </strong>not recoverable from instantaneous CPMM state</li>
<li><strong>Order-flow imbalance: </strong>directional pressure within a block, visible before the swap executes</li>
<li><strong>Oracle latency: </strong>time since last reliable external update</li>
<li><strong>Toxic-flow proxy: </strong>share of recent volume from arb vs fundamental demand</li>
</ul>
<p>These break collinearity because the invariant does not encode them. The test: does the feature add information beyond current oracle gap under the same path and demand assumptions?</p>
<h3>Closing</h3>
<p><a rel="nofollow noopener" href="https://watching-podcast-steering-rely.trycloudflare.com/2026/07/14/before-mev-build-the-pool.html" target="_blank">Part II</a> ran two settings: a seeded path where fees beat LVR, and a deterministic shock where LP-vs-hold stayed negative. The policy layer matters here: oracle-gap dynamic fees beat fixed 6 bps on every sampled path, while inventory-gap adds only a small lift because the two signals are nearly collinear.</p>
<p>That does not prove dynamic fees rescue LP economics in production. The run uses illustrative parameters (σ = 4%, μ = 0, 100 Y fundamental demand per step, CEX fee = 10 bps). The gain still depends on multiplier, demand, and volatility regime, even if the signal relationship is structurally redundant under the CPMM invariant.</p>
<p>Production should be stricter than simulation. This reduced-form world has no gas auction, block latency, queue dynamics, or LP repositioning cost. A hook that freely explores fee settings with LP capital can become statistical gambling once those frictions enter. The safer version starts from a champion rule, deviates only when edge clears cost and uncertainty, and can abstain.</p>
<p>Under CPMM, most fee innovation is control law, not information. The next test is strict: add a path-derived feature (realized volatility or order-flow proxy), check orthogonality to oracle gap on the same paths, then keep it only if paired PnL improves at matched risk.</p>
<h3>Appendix: source</h3>
<ul>
<li><strong>Part I:</strong> The token appeared twice. The AMM market formed once.</li>
<li><strong>Part II:</strong> Before MEV, I Built a Rust AMM Lab to Measure Pool State.</li>
<li><strong>Part III:</strong> Hyperliquid Shows What a Market Looks Like Without an AMM Pool.</li>
<li><strong>Github Repo:</strong> <a rel="nofollow noopener" href="https://github.com/egpivo/amm-lab" target="_blank">amm-lab</a>, Campbell simulation and dynamic-fee policy runs</li>
<li><strong>Campbell:</strong> Campbell, S., Bergault, P., Milionis, J., and Nutz, M. (2025). <a rel="nofollow noopener" href="https://arxiv.org/abs/2508.08152" target="_blank">arXiv:2508.08152</a>.</li>
<li><strong>Baggiani:</strong> Baggiani, L., Herdegen, M., and Sánchez-Betancourt, L. (2025). <a rel="nofollow noopener" href="https://arxiv.org/abs/2506.02869" target="_blank">arXiv:2506.02869</a>.</li>
</ul>
<p><em>This post was originally published on my personal blog: </em><a rel="nofollow noopener" href="https://egpivo.github.io/2026/07/21/dynamic-fees-amm-signal-matters.html" target="_blank"><em>https://egpivo.github.io/2026/07/21/dynamic-fees-amm-signal-matters.html</em></a></p>
<p><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" fifu-data-sizes="auto" fifu-data-src="https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1" fifu-data-srcset="https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=75&amp;resize=75&amp;ssl=1 75w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=100&amp;resize=100&amp;ssl=1 100w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=150&amp;resize=150&amp;ssl=1 150w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=240&amp;resize=240&amp;ssl=1 240w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=320&amp;resize=320&amp;ssl=1 320w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=500&amp;resize=500&amp;ssl=1 500w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=640&amp;resize=640&amp;ssl=1 640w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=800&amp;resize=800&amp;ssl=1 800w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=1024&amp;resize=1024&amp;ssl=1 1024w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=1280&amp;resize=1280&amp;ssl=1 1280w, https://i2.wp.com/medium.com/_/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=7d82cb10eb2e&amp;ssl=1&amp;w=1600&amp;resize=1600&amp;ssl=1 1600w" fifu-lazy="1"  width="1" height="1" alt=""></p>
<hr>
<p>Dynamic Fees in AMMs: When the Signal Matters was originally published in The Capital on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>

<br /><a href="https://medium.com/thecapital/dynamic-fees-in-amms-when-the-signal-matters-7d82cb10eb2e?source=rss----c4037b4d8519---4" target="_blank" rel="noopener">Source link </a></p>
<p>Der Beitrag <a rel="nofollow" href="https://thanksmianews.com/dynamic-fees-in-amms-when-the-signal-matters/">Dynamic Fees in AMMs: When the Signal Matters</a> erschien zuerst auf <a rel="nofollow" href="https://thanksmianews.com">thanksmia</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thanksmianews.com/dynamic-fees-in-amms-when-the-signal-matters/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://thanksmianews.com/wp-content/uploads/2026/07/Dynamic-Fees-in-AMMs-When-the-Signal-Matters.png" medium="image"></media:content>
<friends:post-format>standard</friends:post-format>
<post-id xmlns="com-wordpress:feed-additions:1">133377</post-id>	</item>
	</channel>
</rss>
