Papers
Topics
Authors
Recent
Search
2000 character limit reached

Temporal Function Market Making (TFMM)

Updated 4 July 2026
  • Temporal Function Market Making (TFMM) is a framework where market mechanisms use time-indexed functions to dynamically adjust pricing rules and liquidity incentives.
  • TFMM encompasses implementations like time-dependent CFMM invariants, dynamic-weight AMMs, propagator-based dealer models, and prediction market constructs to tailor price responses.
  • TFMM enhances market efficiency by mitigating arbitrage leakage, replicating option payoffs, synchronizing external data, and stabilizing evolving liquidity conditions.

Searching arXiv for the cited TFMM-related papers and terminology to ground the article in current arXiv records. Temporal Function Market Making (TFMM) denotes market-making mechanisms in which the pricing rule, invariant, or cost function is explicitly indexed by time or by information arriving over time. In the cited literature, TFMM includes time-dependent CFMM invariants, dynamic-weight AMM rebalancing, propagator-based dealer models under transient impact, and cost-function prediction markets with decreasing utility for information. The shared structural feature is temporal adaptation of prices, incentives, and loss geometry, rather than a single implementation template (Jepsen et al., 2023, Dudík et al., 2014, Willetts, 5 Mar 2026, Barzykin, 19 Jan 2026).

1. Formal definitions and scope

In the CFMM formulation, a market maker is specified by a trading function ϕ:R+nR\phi:\mathbb{R}_+^n\to\mathbb{R}, with pool state given by a reserves vector RR+nR\in\mathbb{R}_+^n and invariant level set ϕ(R)=k\phi(R)=k. Valid trades with fee γ(0,1]\gamma\in(0,1] satisfy

ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),

where Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n are the tendered and received baskets. The instantaneous price is obtained from the gradient: if P=ϕ(R)P=\nabla \phi(R) and token nn is the numeraire, then

pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.

For a 2-asset pool with reserves (x,y)(x,y) and numeraire asset RR+nR\in\mathbb{R}_+^n0, a general time-dependent invariant can be written as RR+nR\in\mathbb{R}_+^n1, with instantaneous exchange rate

RR+nR\in\mathbb{R}_+^n2

and invariant slope

RR+nR\in\mathbb{R}_+^n3

This is the basic invariant-based definition of TFMM in the AMM setting (Jepsen et al., 2023).

A second formalization treats TFMM as a time-indexed family of convex cost functions. In cost-function-based markets, the market maker maintains a state RR+nR\in\mathbb{R}_+^n4 and a closed, proper, convex cost function RR+nR\in\mathbb{R}_+^n5. A trade RR+nR\in\mathbb{R}_+^n6 costs RR+nR\in\mathbb{R}_+^n7, and prices are RR+nR\in\mathbb{R}_+^n8 when RR+nR\in\mathbb{R}_+^n9 is differentiable, or more generally ϕ(R)=k\phi(R)=k0. The TFMM abstraction is the tuple ϕ(R)=k\phi(R)=k1, where ϕ(R)=k\phi(R)=k2 is time-indexed and ϕ(R)=k\phi(R)=k3 is a state-transition operator satisfying price preservation. Utility for information is represented by the mixed Bregman divergence

ϕ(R)=k\phi(R)=k4

where ϕ(R)=k\phi(R)=k5 is the convex conjugate of ϕ(R)=k\phi(R)=k6 (Dudík et al., 2014).

A common misconception is that TFMM refers only to clock-time-dependent AMM curves. In the cited literature, the temporal function may instead be an impact kernel ϕ(R)=k\phi(R)=k7, a family of convex costs ϕ(R)=k\phi(R)=k8, or an oracle-synchronized effective curve derived from external liquidity and inventory state (Barzykin, 19 Jan 2026, Abgaryan et al., 2023).

2. Time-dependent CFMM invariants and option replication

The paper "Analysis of the RMM-01 Market Maker" gives a concrete TFMM instantiation in a 2-asset CFMM whose invariant depends on time-to-maturity ϕ(R)=k\phi(R)=k9 (Jepsen et al., 2023). With reserves per LP token γ(0,1]\gamma\in(0,1]0, strike price γ(0,1]\gamma\in(0,1]1, implied volatility γ(0,1]\gamma\in(0,1]2, and γ(0,1]\gamma\in(0,1]3 in the paper’s analysis, the trading function is

γ(0,1]\gamma\in(0,1]4

where γ(0,1]\gamma\in(0,1]5 is the standard normal CDF and γ(0,1]\gamma\in(0,1]6 its quantile. The time dependence enters through γ(0,1]\gamma\in(0,1]7, so γ(0,1]\gamma\in(0,1]8. As γ(0,1]\gamma\in(0,1]9, ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),0 collapses to a constant-sum market. The paper identifies this as the hallmark of TFMM: a CFMM whose invariant explicitly depends on time, thereby shaping path-dependent price dynamics and payoffs (Jepsen et al., 2023).

RMM-01 is designed so that LP tokens replicate a Black–Scholes priced covered call. With

ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),1

the Black–Scholes call price is

ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),2

and the covered call value is

ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),3

The paper shows that when the CFMM’s reported price equals the external market price ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),4,

ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),5

Perfect replication occurs at ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),6, where

ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),7

The RMM-01 marginal price is

ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),8

At fixed reserves, the time derivative is

ϕ(R+γΔΛ)=ϕ(R),\phi(R+\gamma \Delta-\Lambda)=\phi(R),9

Thus, even with no swaps, the internal price drifts deterministically with Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n0. Arbitrageurs continuously adjust reserves so that Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n1, coupling the TFMM’s time drift to external market prices. Profitable arbitrage exists when the CFMM-reported price lies outside

Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n2

A central analytical result concerns price stability relative to Uniswap’s constant product market. For Uniswap V2, Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n3 and Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n4, whereas RMM-01 has infinitesimal price impact

Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n5

At equal prices, RMM-01 has strictly smaller infinitesimal price impact when

Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n6

The bound is easiest to satisfy near at-the-money and as Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n7 decreases. Near expiration,

Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n8

so price manipulation is impossible because Δ,ΛR+n\Delta,\Lambda\in\mathbb{R}_+^n9 does not depend on reserves when P=ϕ(R)P=\nabla \phi(R)0. The same construction is composable with lending: shorting the LP token and holding one unit of the underlying gives a synthetic call,

P=ϕ(R)P=\nabla \phi(R)1

and put–call parity yields a synthetic put via

P=ϕ(R)P=\nabla \phi(R)2

(Jepsen et al., 2023).

3. Dynamic-weight TFMM and the geometry of rebalancing

A second TFMM line studies dynamic-weight AMMs, especially geometric mean market makers with invariant

P=ϕ(R)P=\nabla \phi(R)3

where P=ϕ(R)P=\nabla \phi(R)4 lies on the simplex, P=ϕ(R)P=\nabla \phi(R)5, P=ϕ(R)P=\nabla \phi(R)6. At equilibrium, with exogenous market prices P=ϕ(R)P=\nabla \phi(R)7 and pool value P=ϕ(R)P=\nabla \phi(R)8, the value fraction in asset P=ϕ(R)P=\nabla \phi(R)9 equals the weight:

nn0

In TFMM, a pool manager prescribes a weight trajectory over time. At each block boundary, weights are updated from nn1 to nn2, arbitrageurs trade, and the pool returns to equilibrium at the new weights and current prices (Willetts, 5 Mar 2026).

When weights jump from nn3 to nn4 at fixed prices, the pool’s value shrinks by the retention ratio

nn5

so the log-loss is exactly

nn6

Thus the per-step arbitrage loss is the KL divergence between the new and old weight vectors. For a small change nn7 with nn8,

nn9

which identifies the Fisher–Rao metric

pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.0

as the natural Riemannian metric on the weight simplex (Willetts, 5 Mar 2026).

Under the Hellinger embedding

pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.1

the simplex maps to the positive orthant of the unit sphere, pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.2, and the metric becomes

pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.3

The leading-order loss-minimizing interpolation is therefore SLERP, the great-circle geodesic on the sphere traversed at constant speed. If

pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.4

then

pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.5

For pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.6 steps, each quadratic-loss increment is

pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.7

and total quadratic loss is pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.8.

The midpoint of SLERP is exactly the "(AM+GM)/normalize" heuristic:

pi=PiPn=iϕnϕ.p_i=\frac{P_i}{P_n}=\frac{\partial_i\phi}{\partial_n\phi}.9

where

(x,y)(x,y)0

This identity holds for any number of tokens and any magnitude of weight change. It implies that all dyadic SLERP points can be generated by recursive AM–GM bisection without trigonometric functions. On the full KL cost, if weights are bounded away from zero and (x,y)(x,y)1, the paper proves

(x,y)(x,y)2

so relative sub-optimality is (x,y)(x,y)3 (Willetts, 5 Mar 2026).

4. Propagator-based TFMM and endogenous price impact

In dealer markets, TFMM can be formulated through a temporal impact kernel rather than an AMM invariant. In "Market Making and Transient Impact in Spot FX", the midprice is

(x,y)(x,y)4

where (x,y)(x,y)5 is cumulative interbank execution and (x,y)(x,y)6 is a causal, nonincreasing, integrable propagator. The paper uses the exponential kernel

(x,y)(x,y)7

with resilience rate (x,y)(x,y)8 and half-life

(x,y)(x,y)9

In the equivalent Markovian embedding,

RR+nR\in\mathbb{R}_+^n00

where RR+nR\in\mathbb{R}_+^n01. Dealer inventory evolves as

RR+nR\in\mathbb{R}_+^n02

and interbank hedging cost is

RR+nR\in\mathbb{R}_+^n03

The HJB with state RR+nR\in\mathbb{R}_+^n04 yields approximate optimal quotes

RR+nR\in\mathbb{R}_+^n05

with

RR+nR\in\mathbb{R}_+^n06

and optimal hedging speed

RR+nR\in\mathbb{R}_+^n07

where

RR+nR\in\mathbb{R}_+^n08

The boundary RR+nR\in\mathbb{R}_+^n09 defines the pure internalization zone. In this formulation, the TFMM “temporal function” is the impact kernel RR+nR\in\mathbb{R}_+^n10 and its resilience parameter RR+nR\in\mathbb{R}_+^n11 (Barzykin, 19 Jan 2026).

A related perspective is given by the dynamic-auction model in "A Model of Market Making and Price Impact", where the market-making function arises endogenously from a stochastic differential game among symmetric market makers (Singh, 2021). In linear-symmetric Nash equilibrium,

RR+nR\in\mathbb{R}_+^n12

and individual trading rates satisfy

RR+nR\in\mathbb{R}_+^n13

Writing RR+nR\in\mathbb{R}_+^n14 and identifying RR+nR\in\mathbb{R}_+^n15, the equilibrium price takes Almgren–Chriss form

RR+nR\in\mathbb{R}_+^n16

Here the temporal pricing rule is inventory-dependent and rate-dependent: a persistent component enters through the state RR+nR\in\mathbb{R}_+^n17, while temporary impact enters through RR+nR\in\mathbb{R}_+^n18. This literature suggests that a temporal market-making function need not be explicitly imposed; it can emerge from equilibrium quoting under inventory risk and competition (Singh, 2021).

5. Information-sensitive TFMM in prediction markets

In prediction markets, TFMM is built from a time-indexed family of convex cost functions whose utility for information decreases over time. In the cost-function framework, with outcome space RR+nR\in\mathbb{R}_+^n19, payoff vectors RR+nR\in\mathbb{R}_+^n20, state RR+nR\in\mathbb{R}_+^n21, cost RR+nR\in\mathbb{R}_+^n22, and conjugate

RR+nR\in\mathbb{R}_+^n23

trade payoff is

RR+nR\in\mathbb{R}_+^n24

The mixed Bregman divergence

RR+nR\in\mathbb{R}_+^n25

has the identities

RR+nR\in\mathbb{R}_+^n26

where RR+nR\in\mathbb{R}_+^n27 (Dudík et al., 2014).

For sudden revelation, a random variable RR+nR\in\mathbb{R}_+^n28 becomes publicly revealed at a known time RR+nR\in\mathbb{R}_+^n29. The market maker leaves the state unchanged, RR+nR\in\mathbb{R}_+^n30, and replaces RR+nR\in\mathbb{R}_+^n31 by a new cost function RR+nR\in\mathbb{R}_+^n32 constructed from offsets

RR+nR\in\mathbb{R}_+^n33

the piecewise-shifted dual

RR+nR\in\mathbb{R}_+^n34

and the convex roof RR+nR\in\mathbb{R}_+^n35. In primal form,

RR+nR\in\mathbb{R}_+^n36

Under the consistency condition in the paper’s "Implicit submarket closing" theorem, the post-switch market simultaneously satisfies CondPrice, Ex, and Ze: conditional prices are preserved, excess utility is preserved within each conditional submarket, and the guaranteed profit from knowing only the revealed information is zero. The worst-case loss is preserved (Dudík et al., 2014).

For gradual decrease, the structured market is represented as an LCMM with submarkets RR+nR\in\mathbb{R}_+^n37 and non-increasing schedules RR+nR\in\mathbb{R}_+^n38, RR+nR\in\mathbb{R}_+^n39. The direct-sum cost at time RR+nR\in\mathbb{R}_+^n40 is

RR+nR\in\mathbb{R}_+^n41

and the constrained market is

RR+nR\in\mathbb{R}_+^n42

If RR+nR\in\mathbb{R}_+^n43 minimizes RR+nR\in\mathbb{R}_+^n44, the price-preserving state update to time RR+nR\in\mathbb{R}_+^n45 is

RR+nR\in\mathbb{R}_+^n46

The divergence evolution is

RR+nR\in\mathbb{R}_+^n47

This construction preserves prices while making utility for targeted information nonincreasing in time, and the worst-case loss over time never exceeds the initial one (Dudík et al., 2014).

6. Oracle-synchronized architectures, composability, and design tensions

The paper "Dynamic Function Market Maker" presents a protocol architecture that implements a TFMM-like mechanism through a virtual order book, an external liquidity density function (ELDF), rebalancing premiums, non-linear buffers, and an algorithmic accounting-asset RR+nR\in\mathbb{R}_+^n48 (Abgaryan et al., 2023). In the notation of the paper, RR+nR\in\mathbb{R}_+^n49 are reserves, RR+nR\in\mathbb{R}_+^n50 is the consolidated external price, RR+nR\in\mathbb{R}_+^n51 is the external liquidity density function, RR+nR\in\mathbb{R}_+^n52 is the internal liquidity density function, RR+nR\in\mathbb{R}_+^n53 are nominal open inventories expressed in RR+nR\in\mathbb{R}_+^n54, RR+nR\in\mathbb{R}_+^n55 is the rebalancing premium function, RR+nR\in\mathbb{R}_+^n56 is its aggressiveness parameter, RR+nR\in\mathbb{R}_+^n57 is the sLP cover coefficient, RR+nR\in\mathbb{R}_+^n58 is utilization, RR+nR\in\mathbb{R}_+^n59 is Treasury Reserve, and RR+nR\in\mathbb{R}_+^n60 is the rebalancing fee fraction of the AMM fee. The protocol’s solvency invariant is

RR+nR\in\mathbb{R}_+^n61

with

RR+nR\in\mathbb{R}_+^n62

and

RR+nR\in\mathbb{R}_+^n63

The one-price principle is expressed through the synchronization error

RR+nR\in\mathbb{R}_+^n64

with enforcement band

RR+nR\in\mathbb{R}_+^n65

The internal effective curve is synchronized to the external curve by

RR+nR\in\mathbb{R}_+^n66

where RR+nR\in\mathbb{R}_+^n67 is the fitted external curve. Rebalancing premiums and sLP buffers modify the effective price schedule through

RR+nR\in\mathbb{R}_+^n68

and

RR+nR\in\mathbb{R}_+^n69

The deterministic settlement flow includes data aggregation, pricing update, order routing, buffer adjustment, fee allocation, and auction updates of RR+nR\in\mathbb{R}_+^n70 subject to Treasury bounds (Abgaryan et al., 2023).

Across these constructions, TFMM is not a single invariant family but a design principle for embedding time, information, or resilience directly into the market-making rule. In RMM-01, the temporal parameter is RR+nR\in\mathbb{R}_+^n71 and the invariant flattens toward constant-sum near expiry (Jepsen et al., 2023). In dynamic-weight AMMs, the temporal object is the weight trajectory, and arbitrage leakage is measured by KL divergence on the simplex (Willetts, 5 Mar 2026). In propagator models, the temporal object is the impact kernel RR+nR\in\mathbb{R}_+^n72 and its resilience scale RR+nR\in\mathbb{R}_+^n73 (Barzykin, 19 Jan 2026). In prediction markets, it is the schedule of convex costs RR+nR\in\mathbb{R}_+^n74 and the state update operator RR+nR\in\mathbb{R}_+^n75 that preserve prices while attenuating utility for selected information (Dudík et al., 2014).

The main design tensions are also explicit in the cited papers. RMM-01 assumes continuous trading and frictionless markets for replication, with real-world fees and lending interest introducing small deviations (Jepsen et al., 2023). The dynamic-weight geometry assumes zero fees and perfect, immediate arbitrage within each block step, exogenous prices constant within each step, and a positive weight floor (Willetts, 5 Mar 2026). DFMM requires sufficient external liquidity and bounded latency for its contraction argument, and it specifies fallback modes for oracle failures and collateral shortfall (Abgaryan et al., 2023). The transient-impact HJB requires progressively measurable controls together with integrability and boundedness sufficient for existence of the solution (Barzykin, 19 Jan 2026). The prediction-market constructions require consistency or tightness conditions to achieve the full combination of CondPrice, Ex, Ze, and DecUtil guarantees (Dudík et al., 2014). These conditions do not negate the TFMM framework; they delineate the regimes in which its temporal adaptations are analytically tractable and economically interpretable.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

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