Papers
Topics
Authors
Recent
Assistant
AI Research Assistant
Well-researched responses based on relevant abstracts and paper content.
Custom Instructions Pro
Preferences or requirements that you'd like Emergent Mind to consider when generating responses.
Gemini 2.5 Flash
Gemini 2.5 Flash 134 tok/s
Gemini 2.5 Pro 41 tok/s Pro
GPT-5 Medium 22 tok/s Pro
GPT-5 High 25 tok/s Pro
GPT-4o 60 tok/s Pro
Kimi K2 192 tok/s Pro
GPT OSS 120B 427 tok/s Pro
Claude Sonnet 4.5 37 tok/s Pro
2000 character limit reached

Temporal Function Market Makers (TFMMs)

Updated 26 October 2025
  • TFMMs are time-dependent automated market makers that adjust asset weights to enable dynamic liquidity provision, progressive price formation, and adaptive market making.
  • They incorporate mechanisms like Liquidity Bootstrap Pools where evolving weights and scheduled adjustments are used to manage arbitrage opportunities and mitigate MEV risks.
  • Analytical models and simulations demonstrate that careful parameterization and guardrails can effectively balance risk management with functional adaptability in TFMMs.

Temporal Function Market Makers (TFMMs) are a class of automated market making algorithms in decentralized finance (DeFi) characterized by trading functions whose parameters, specifically asset weights, are explicit functions of time. Unlike constant function market makers (CFMMs)—such as the canonical constant product AMM—they introduce a temporal dimension into the market making invariant, leading to time-dependent liquidity provision, dynamic price formation, and new considerations for both risk management and adversarial exploitation across discrete time intervals (e.g., blockchain blocks). TFMMs are deployed in mechanisms including Liquidity Bootstrap Pools (LBPs) and Replicating Market Makers (RMMs), where asset weights evolve according to predetermined or externally-signaled schedules.

1. Mathematical Structure of TFMMs

TFMMs generalize CFMMs by encoding explicit time-dependent weights into the trading invariant. For an NN-token pool, the invariant is given by:

i=1NRiwi(t)=k(t)\prod_{i=1}^N R_i^{w_i(t)} = k(t)

where RiR_i are the reserves of token ii, wi(t)w_i(t) is the time-dependent weight (i=1Nwi(t)=1\sum_{i=1}^N w_i(t)=1, 0<wi(t)<10 < w_i(t) < 1), and k(t)k(t) is a normalization function. The instantaneous quoted price for token jj (using token ii as numéraire) is

mi,jTFMM(t)=1γRiRjwj(t)wi(t)m^{\mathrm{TFMM}}_{i,j}(t) = \frac{1}{\gamma}\frac{R_i}{R_j}\frac{w_j(t)}{w_i(t)}

where γ\gamma is the fee factor, typically γ=0.997\gamma = 0.997. Prices thus evolve between blocks as the weights wi(t)w_i(t) change, even if the reserves RiR_i remain constant. This time-dependent architecture enables the introduction of mechanisms such as liquidity bootstrapping, progressive price curves, and adaptive market making (Willetts et al., 23 Apr 2024).

2. Temporal Dynamics and Price Formation

Within a block, the trading function remains fixed, but between blocks, the weights wi(t)w_i(t) may update according to prescribed schedules or as a function of exogenous signals (e.g., governance, oracle events, or external time series). This leads to discrete jumps in spot prices at the boundary of each time interval. The quoted trade amount (for trading Δi\Delta_i of token ii for token jj) is determined by:

Λj=Rj(11(1+γΔiRi)wi(t)/wj(t))\Lambda_j = R_j \left(1 - \frac{1}{\left(1 + \gamma \frac{\Delta_i}{R_i}\right)^{w_i(t)/w_j(t)}}\right)

At equilibrium, the pool price mum_u aligns with the external market price mpm_p up to the fee adjustment:

γmp<mu<γ1mp\gamma m_p < m_u < \gamma^{-1} m_p

This formulation ensures arbitrage bounds while enabling flexible temporal liquidity curves.

3. MEV Vulnerabilities and Inter-Block Attack Vectors

TFMMs’ discrete weight transitions introduce unique attack vectors for Maximal Extractable Value (MEV), particularly multi-block manipulation. Attacks proceed by pre-conditioning the reserves in anticipation of a favorable weight update. In the first block, an attacker executes a deliberate trade to move the quoted price away from mpm_p. After weights update in the subsequent block, the changed price results in an amplified arbitrage discrepancy, which can be exploited for profit.

The net extractable value from the attack is

Z(ϵ)=X(ϵ)C(ϵ)X(ϵ0)Z(\epsilon) = X(\epsilon) - C(\epsilon) - X(\epsilon_0)

where C(ϵ)C(\epsilon) is the attacker’s trade cost, X(ϵ)X(\epsilon) is the arbitrage profit post-update, and X(ϵ0)X(\epsilon_0) is the vanilla arbitrage baseline absent manipulation. The key insight is that dynamic weights, by causing endogenous pool price adjustments, enable attackers to “boost” arbitrage returns outside of the classical single-block sandwich or front-run attacks (Willetts et al., 23 Apr 2024).

Table: TFMM MEV Attack Process

Step Description Mathematical Formulation
Pre-manipulation trade Attacker skews quoted price mAMM,2manip=(1+ϵ)mpm_{\mathrm{AMM},2}^{\mathrm{manip}} = (1+\epsilon) m_p
Weight update Pool price jumps due to new wi(t)w_i(t) mi,jTFMM(t+1)m^{\mathrm{TFMM}}_{i,j}(t+1)
Arbitrage exploit Attacker or arbitrageur profits from amplified deviation Z(ϵ)Z(\epsilon)

4. Analytical Models and Guardrails

The fee-inclusive trading condition for TFMMs is expressed as:

(R1+γΔ1)w1(R2Δ2)w2=R1w1R2w2(R_1 + \gamma \Delta_1)^{w_1} (R_2 - \Delta_2)^{w_2} = R_1^{w_1} R_2^{w_2}

Post-manipulation, the relationship between reserve fractions and fee factor ties directly to the attack’s efficiency:

(1+Δ1R1)(1+γΔ1R1)w1w2=γ2(1+ϵ)\left(1+\frac{\Delta_1}{R_1}\right)\left(1+\gamma\frac{\Delta_1}{R_1}\right)^{\frac{w_1}{w_2}} = \gamma^2 (1+\epsilon)

To defend against these multi-block attacks, the following guardrails are proposed:

  • Maximum Allowed Trade Size: Prohibit trades altering reserves by more than a preset fraction (e.g., 20% of pool total).
  • Maximum Allowed Weight Change: Impose cap on permitted shift in wi(t)w_i(t) per block.
  • Minimum Allowed Weight Value: Ensure all weights remain above a threshold avoiding extreme price sensitivity.

These can be formalized via sufficiency conditions for preventing profitable manipulation, such as requiring the gradients of the net return with respect to manipulation to be nonpositive:

ϵ(Δ1Δ1)0\frac{\partial}{\partial \epsilon}\Bigl(\Delta_1' - \Delta_1\Bigr) \le 0

The inequalities specify “safe regions” of parameter space wherein attack returns do not exceed baseline arbitrage opportunities.

5. Simulation Evidence for Robustness

Extensive numerical simulation—over 450 million attack scenarios—was performed to empirically verify attack efficacy and defense effectiveness. Scenarios varied reserves, weights, weight transitions, and trade sizes. Results show:

  • With tight guardrail parameters (small trade sizes, minimal weight changes, higher minimum weights), no profitable attacks above baseline arbitrage were observed.
  • When guardrails are relaxed, attack vectors successfully generate MEV, demonstrating the necessity of disciplined parameterization.
  • Results were visualized with attack return heatmaps, where white regions denote absence of profitable attacks and colored regions indicate MEV extraction.

This evidence supports the conclusion that TFMMs, when properly parameterized, can be safeguarded against the multi-block MEV attack enabled by dynamic temporal weights (Willetts et al., 23 Apr 2024).

6. Relationship to Prediction Market Microstructures

The temporal adaptivity seen in TFMMs is conceptually related to adaptive market makers in prediction markets, such as the Bayesian Market Maker (BMM) and Logarithmic Market Scoring Rule (LMSR). BMM maintains a belief distribution using a sliding-window consistency index for uncertainty adaptation:

C(history)=L(μt,2σt)L(μt,σt)C(\mathrm{history}) = L(\mu_t, 2\sigma_t) - L(\mu_t, \sigma_t)

This mechanism enables equilibrium convergence while remaining responsive to shocks, analogous to the temporal smoothness and adaptation achieved by TFMM weight functions. LMSR uses bounded-loss inventory mechanisms with a single parameter, offering loss bounds but less adaptable pricing (Brahma et al., 2010).

A plausible implication is that time-dependent variants of Bayesian updating, or inventory-based risk smoothing, may inform future TFMM algorithm design. Both market microstructures seek to balance liquidity provision, price stability, and adaptability in the face of evolving market states.

7. Implications and Design Considerations for TFMMs

Design of TFMMs requires deliberate balancing of liquidity, adaptability, and security. Key points include:

  • Dynamic Liquidity Provision: TFMMs enable scheduled or responsive liquidity, facilitating applications like progressive bootstrapping or moving-weight auctions.
  • Adaptation to Market Information: Temporal structure accommodates information flows, oracle updates, or exogenous risk events.
  • Risk Management: Guardrail parameterization is necessary to prevent MEV extraction that targets inter-block weight updates.
  • Equilibrium and Convergence: Bayesian updating and smoothing mechanisms may improve steady-state performance, with tradeoffs in adaptivity and risk exposure.

In summary, TFMMs extend the mathematical and operational landscape of AMMs by introducing temporality into pool invariants. Their dynamic weights create both new opportunities for adaptive market making and new vulnerabilities, particularly to multi-block adversarial strategies. Analytical modeling and empirical evidence demonstrate that with appropriate guardrails, TFMMs can deliver robust, time-sensitive liquidity while limiting attack surfaces and preserving market integrity (Willetts et al., 23 Apr 2024, Brahma et al., 2010).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)
Forward Email Streamline Icon: https://streamlinehq.com

Follow Topic

Get notified by email when new papers are published related to Temporal Function Market Makers (TFMMs).