Manuscript Offprint
arXiv:2608.30957Viable Pool Sizing for On-Chain FX Liquidity: Amplification, Capital, and Resilience
Ryan Fang
Royal Bank of Canada Toronto, ON rfang@fryand.com
Ivan Bardziyan
Royal Bank of Canada Toronto, ON ivanbardziyan@gmail.com
Jessica Wang
Royal Bank of Canada Toronto, ON jessica.wang255@gmail.com
Mayank Anand
Royal Bank of Canada Toronto, ON mayank.anand@borealisai.com
Abstract
Financial institutions deploying on-chain FX liquidity face a joint design problem: how much capital to commit, and how to configure the pool, to remain both competitive on trading costs and profitable as a liquidity provider? The StableSwap mechanism [Egorov, 2020] interpolates between constant-product (CPMM) and constant-sum (CSMM) market makers [Port and Tiruviluamala, 2022] via an amplification factor , but neither extreme suits institutional FX: CPMM pools require excessive capital and generate high impermanent loss; CSMM pools are capital-efficient near the peg but drain rapidly under adversarial flow. Using a Merton jump-diffusion price process [Merton, 1976] and the loss-versus-rebalancing (LVR) framework [Milionis et al., 2022], we map the joint space to identify configurations that satisfy all three institutional requirements: competitive slippage, positive return, and shock resilience. Minimum viable pool size scales as ; ROC at that minimum is thin ( per horizon) and -invariant; low- pools () suffer slippage exceeding 200 bps under a shock, while high- pools () suffer reserve drain up to 60%, establishing both a capital floor and a practical amplification ceiling.
1 Introduction
Wholesale FX markets clear at sub-pip spreads. An on-chain venue targeting institutional flow must therefore offer slippage within 2 bps, capital at balance-sheet scale, and resilience to the macro shocks (rate decisions, data releases, geopolitical events) that drive large one-sided flows.
No single point on the CPMM-CSMM spectrum satisfies all three. CPMMs, such as Uniswap v2 [Adams et al., 2020], provide liquidity at any price but at high slippage and impermanent loss. CSMMs offer near-zero slippage near the peg but are fully drainable when the rate moves [Port and Tiruviluamala, 2022]. StableSwap [Egorov, 2020] interpolates between the two via amplification factor , concentrating liquidity near a target rate while retaining a price-recovery mechanism as reserves become imbalanced.
With fee fixed at 1 bp, the institution’s design variables are and total value locked (TVL). The question is not which optimizes a single metric, but which pairs are jointly viable.
*This work was completed at Royal Bank of Canada as part of the RBC Amplify program.
Preprint.
Capital efficiency gains from higher A are offset by shock fragility, and the two constraints bind in different regions of the parameter space.
3 Methodology
3.1 Pool Mechanics
Oracle normalization. StableSwap’s invariant operates on equal-unit reserves. Since FX rates are not fixed, the pool maintains a reference oracle price and works with normalized reserves:
Both are in base-currency units. When equals the true cross-rate, at a balanced pool and liquidity concentrates at the correct price. Updating re-centers the invariant instantaneously without touching raw reserves.
Invariant and CPMM–CSMM tradeoff. The StableSwap invariant over the normalized reserves for is:
where is the liquidity invariant. As : constant-product ; as : constant-sum . Figure 1 illustrates this geometry. Near balance the curve is nearly linear, producing low price impact; as reserves skew it bends toward constant-product, limiting further drain once a substantial fraction of one reserve is exhausted.
Fees and slippage. Each trade of size pays fee at (1 bp); the net executes against the invariant. A 1 bp fee matches the tight end of institutional inter-dealer FX spreads and is the protocol-level fee set in StableSwap deployments for stable pairs [Egorov, 2020]. Slippage is
where is obtained by implicit differentiation of the invariant. With :
This equals at equilibrium and diverges as reserves skew. Fee revenue accrues to the institution as sole LP.
TVL/Q scaling. Near equilibrium , implicit differentiation of the invariant gives the second derivative of price with respect to trade size as . For a fixed slippage target , the minimum depth scales as , and since pool depth scales with TVL at fixed , this yields TVL/Q . The empirical constant is calibrated from bisection results (Table 1) and holds within 5% across all tested values.

Figure 1: StableSwap invariant curves for . Higher concentrates liquidity near , approaching constant-sum behavior (dashed). Lower spreads liquidity across the full range, approaching constant-product (dotted).
3.2 Rebalancing, Repegging, and Profitability
Two mechanisms keep the pool aligned with the off-chain market, and they are triggered independently.
Rebalancing (arbitrage alignment). At each step the bot compares to spot . If
the bot executes a price-alignment trade: binary search finds such that post-trade, capturing the arbitrage spread net of gas cost. This threshold corresponds to a conservative L2 transaction cost of approximately 100,000 trade, consistent with Layer 2 median fees reported by Ambrosia and Mizrach [2026]. In practice, total gas burned over 500 steps is , compared to fee revenue of (a ratio of ). ROC is therefore insensitive to across several orders of magnitude; it is determined almost entirely by .
Repegging (oracle update). Repegging updates when the oracle has drifted materially:
On trigger, , re-centering liquidity concentration at the new rate. The 0.1% threshold is within the typical daily range of G10 FX pairs yet large enough to avoid spurious updates from tick-level noise. Rebalancing corrects the moment-to-moment price gap; repegging corrects structural oracle drift.
Profitability. Per Milionis et al. [2022], the arbitrage profit per rebalancing event is . Gross margin over the horizon is:
where is the number of rebalancing events. Return on capital is .
3.3 Market Simulation
The off-chain spot follows a Merton jump-diffusion process [Merton, 1976]:
with , , , , . These parameters are representative of G10 FX pairs under normal conditions: major pairs such as EUR/USD and USD/CAD exhibit annualized realized volatility of 5–8% and experience roughly one to two significant macro discontinuities per year (central bank surprises, data shocks). The zero-drift assumption () reflects the martingale property of FX rates under risk-neutral pricing. Jumps multiply by , (), calibrated to typical central bank surprise magnitudes. Each step also generates one uninformed trade of size in a random direction, representing routine institutional flow.
The resilience experiment uses elevated parameters (, ) to represent a period of sustained macro uncertainty with more frequent shocks. One-sided shocks of , , and are injected at every 50th step. The 50-step interval (50 trading days weeks) approximates the frequency of major scheduled central bank meetings (Federal Reserve, ECB, Bank of Canada), which are the primary source of large one-sided FX flows in G10 markets.
3.4 Model Assumptions and Viability Metrics
Core assumptions.
-
Institution is the sole LP; all fees accrue to it.
-
Fee fixed at bp.
-
Bot has zero latency: observes and acts atomically within the same step.
-
always reflects true spot at repeg time; oracle manipulation not modeled.
-
Flow is uninformed: one i.i.d. trade of size per step.
-
constant (conservative L2 estimate; see §3.2).
Viability metrics. A pool (, TVL) is viable iff all three hold:
-
Slippage: avg. bps for a $100,000 trade.
-
Profitability: over 500 steps ($50M notional traded).
-
Resilience: under shock, max imbalance and max slippage bps.
Thresholds follow institutional FX norms: 2 bps is the inter-dealer spread tolerance; 50% imbalance is the point at which the short reserve becomes operationally thin; 100 bps is a conservative tail-slippage ceiling.
3.5 Experiment Suite
(1) Geometric bisection finds minimum TVL for bps slippage at each . (2) A 10-run ensemble sweeps all () pairs on a log-spaced grid. (3) A resilience experiment runs 10 ensembles per () under , , and adversarial shocks. (4) A sensitivity sweep varies and at , holding TVL fixed at .
4 Results
4.1 Minimum Viable Pool Size
Table 1 reports minimum TVL for bps slippage at each . The TVL/Q ratio is inversely proportional to : at (\approx \95M10 \timesA = 1000\approx $1M$). Figure 2 plots this on a log-log scale.
The TVL/Q scaling follows from invariant geometry: near equilibrium, marginal price curvature is proportional to , so depth required for a fixed slippage target is inversely proportional
Table 1: Minimum TVL for 2 bps slippage per ( , fee = 1 bp).
| A | 10 | 25 | 50 | 100 | 200 | 500 | 1000 |
|---|---|---|---|---|---|---|---|
| Min TVL | |||||||
| TVL/Q | 952 | 392 | 198 | 100 | 50 | 20 | 10 |

Figure 2: Minimum TVL/Q for 2-bps slippage vs A (log–log). The relationship is approximately TVL/Q ≈ 1000/A.

Figure 3: Average slippage (bps) vs TVL/Q ratio across all A values. The 2 bp target (dashed) is met at different TVL/Q thresholds per A.
to A. This approximation holds only near equilibrium; the relationship breaks down under large shocks.
4.2 Return on Capital
ROC falls monotonically with pool size: fee revenue is set by trade volume (Q fixed), so a larger TVL denominator purely dilutes return. At minimum viable TVL for ( ), ROC per horizon.
ROC curves for all values nearly coincide when plotted against TVL/Q: at the same TVL/Q ratio, pools with and yield identical ROC ( at TVL/Q = ). Higher reduces the capital required to reach a given TVL/Q without improving yield; the tradeoff is entirely in resilience.
4.3 Resilience Under Adversarial Shocks
Table 2 reports resilience metrics under a shock (1M trade, 10M pool).
Max slippage falls with to (13 bps) and then plateaus: both and yield an 8 bps mean, though with high-variance tail runs. This plateau reflects the CSMM transition: high- pools have low price impact near balance but face unbounded impact once pushed past the invariant's efficient range. The unboundedness is a direct consequence of the invariant's asymptotic structure: as one normalized reserve , the marginal price (see the formula in §3.1). The curve asymptotes to the axes rather than crossing them, so a sufficiently large one-sided trade always encounters slippage growing without bound. This property prevents complete pool drain at the cost of extreme price impact in the tail.
Imbalance corroborates this: 0.28 at , 0.44 at , 0.59 at . A pool drained nearly 60% to one side is vulnerable to complete drain under continued one-sided flow. Figures 5 and 6 show all three shock levels.
4.4 Sensitivity to Market Conditions
Rebalancing frequency scales with both (larger per-step deviations) and (more frequent jumps), as either increases the rate at which crosses . Curves for are nearly indistinguishable, confirming that operational cost is market-driven, not architecture-driven.

Figure 4: Return on capital (% per 500-step horizon) vs TVL/Q ratio across values. ROC is positive everywhere but falls rapidly with pool size. Curves for different nearly overlap, confirming that profitability is determined by TVL/Q, not alone.
Table 2: Resilience metrics under adversarial shock (TVL =A|\tilde{x} - \tilde{y}|/D$; avg imbalance is the mean over all steps; values above 0.5 indicate over half the pool drained to one side.
| Metric | Amplification factor | ||||||
|---|---|---|---|---|---|---|---|
| 10 | 25 | 50 | 100 | 200 | 500 | 1000 | |
| Max slippage (bps) | 210 | 88 | 45 | 23 | 13 | 8 | 8 |
| Max imbalance | 0.22 | 0.23 | 0.24 | 0.25 | 0.28 | 0.44 | 0.59 |
| Avg imbalance | 0.01 | 0.01 | 0.02 | 0.02 | 0.03 | 0.05 | 0.07 |
5 Discussion
Viable region. Slippage requires TVL/Q . Resilience imposes a ceiling near : above it, max imbalance under a shock reaches 28% at , 44% at , and 59% at , at which point the short-leg reserve is operationally thin. The intersection places the viable range at , requiring 10M TVL for 100,000.
The CSMM ceiling. Near balance, the StableSwap curve is nearly linear; near the edges it is nearly vertical and price impact is unbounded. A large unidirectional trade can reach the vertical region before the rebalancer fires, after which further trades extract value at the pool's expense. At with TVL = 1M shock triggers this in the majority of runs.
Profitability requires volume. At minimum viable size, 1 bp fee revenue yields 10M pool per horizon (0.054%). LVR adds a small increment. Revenue scales with trade frequency and notional, not per-trade margin; insufficient order flow cannot justify the locked capital regardless of .
Practical sizing. For 100,000 at 2-bps slippage: , TVL 5M, . At capital halves but resilience fails. At the pool is shock-proof but requires $95M TVL, which is impractical for most institutional balance sheets.
6 Limitations
Single LP. A permissionless pool may attract passive LPs, diluting fee revenue but also absorbing shock imbalance. Results are conservative on capital but may not hold when LP dynamics are endogenous.
Pool Imbalance under Adversarial Shocks (TVL = $10M)

Figure 5: Max pool imbalance under 5×, 10×, and 20× adversarial shocks vs (TVL = A = 200A = 500$.
Worst-case Slippage under Adversarial Shocks vs

Figure 6: Max slippage under 5×, 10×, and 20× shocks vs for TVL = 100M (right). Slippage falls with then plateaus as high- pools transition toward constant-sum behavior, with tail-run variance increasing.
Zero-latency rebalancing. In practice, block delays and mempool competition mean the bot may arrive late, allowing external arbitrageurs to extract LVR first and increasing realized slippage.
Constant gas cost. We model as fixed at [Ambrosia and Mizrach, 2026]. Because gas cost is negligible relative to fee revenue (see §3.2), ROC is not materially affected by this choice. However, gas prices are demand-driven and can spike by orders of magnitude during network congestion. At sufficiently high gas cost, rebalancing becomes unprofitable and the bot ceases to fire, allowing the pool to drift from spot and exposing LPs to adverse selection. Dynamic gas modeling is left as future work.
Simplified flow model. Real institutional flow exhibits autocorrelation, order fragmentation, and macro-driven informed flow, each of which would affect slippage and profitability.
FX price process. The Merton jump-diffusion model is tractable and captures the two key features of FX dynamics: continuous diffusion and discrete macro jumps. However, it assumes constant volatility and independent jumps, whereas FX volatility is well-documented to cluster (GARCH effects) and jumps may be correlated with liquidity conditions. More sophisticated alternatives, such

Figure 7: Rebalancing activity vs volatility for three jump intensities , at . Curves are nearly identical across values, indicating that operational burden is market-driven, not architecture-driven.
as Heston stochastic volatility or SABR, may yield more accurate calibrations for specific currency pairs. Comparison across price process specifications is left as future work.
Periodic adversarial shocks. A sophisticated adversary would time shocks to oracle-lag or low-liquidity windows, potentially causing more severe drain. Reported resilience metrics are therefore lower bounds on vulnerability.
Static oracle. Oracle manipulation, latency, and failure are not modeled. A compromised oracle could drain the pool by shifting adversarially.
7 Conclusion
On-chain FX liquidity via a concentrated AMM is viable within a well-defined region. Minimum pool size scales as ; ROC at that minimum is thin () but positive and -invariant. The binding constraint at high is not capital efficiency but shock resilience: pools suffer reserve drain exceeding 40% and elevated tail slippage under adversarial flow. For institutional deployments at Q = \100,000A \in [100, 200]\text{TVL} \in [$5\text{M}, $10\text{M}]$.
References
Hayden Adams, Noah Zinsmeister, and Dan Robinson. Uniswap v2 core. Technical report, Uniswap, 2020. URL https://uniswap.org/whitepaper.pdf.
Hayden Adams, Noah Zinsmeister, Moody Salem, River Keefer, and Dan Robinson. Uniswap v3 core. Technical report, Uniswap, 2021. URL https://uniswap.org/whitepaper-v3.pdf.
Megan Ambrosia and Bruce Mizrach. Transaction costs and speed in the ethereum ecosystem: Scalability of the mainnet and layer 2s, 2026. URL https://arxiv.org/abs/2606.22206.
Michael Egorov. Stableswap - efficient mechanism for stablecoin liquidity. Technical report, Curve Finance, 2020. URL https://docs.curve.finance/pdf/whitepapers/whitepaper_stableswap.pdf.
Robert C. Merton. Option pricing when underlying stock returns are discontinuous. Journal of Financial Economics, 3(1-2):125-144, 1976.
Jason Milionis, Ciamac C. Moallemi, Tim Roughgarden, and Anthony Lee Zhang. Automated market making and loss-versus-rebalancing, 2022. URL https://arxiv.org/abs/2208.06046.
Jason Milionis, Ciamac C. Moallemi, Tim Roughgarden, and Anthony Lee Zhang. Automated market making and arbitrage profits in the presence of fees, 2023. URL https://arxiv.org/abs/2305.14604.
Alexander Port and Neelesh Tiruviluamala. Mixing constant sum and constant product market makers, 2022. URL https://arxiv.org/abs/2203.12123.
Glossary
| Term | Definition |
|---|---|
| AMM | Automated Market Maker. A smart-contract-based exchange that uses a mathematical invariant to set prices and execute trades without an order book. |
| CPMM | Constant-Product Market Maker (). High price impact, but the pool never fully drains. |
| CSMM | Constant-Sum Market Maker (). Near-zero slippage near the peg, but fully drainable under one-sided flow. |
| StableSwap | The AMM invariant (Curve Finance, 2020) that interpolates between CPMM and CSMM via amplification factor . |
| Amplification factor. Higher concentrates liquidity near the peg (CSMM-like); lower spreads it across the full range (CPMM-like). | |
| TVL | Total Value Locked. The aggregate USD value of assets in the pool, and the primary capital sizing variable. |
| The StableSwap liquidity invariant (scalar, normalized reserve units), solved via Newton’s method at each step. | |
| Oracle price () | Off-chain reference FX rate used to normalize reserves. Updated (repegged) when drift from spot exceeds . |
| Rebalancing | Bot action triggered when . Executes a price-alignment trade to restore , capturing the arbitrage spread. |
| Repegging | Oracle update () triggered independently when oracle drift exceeds . Re-centers the pool’s liquidity concentration without executing a trade. |
| LVR | Loss-Versus-Rebalancing. Per-rebalancing arbitrage profit equal to . |
| ROC | Return on Capital. Net gross margin divided by TVL over the simulation horizon. |
| Pool imbalance | . Fractional deviation of normalized reserves from 50/50. A value of 0.5 means one reserve is exhausted. |
| Merton jump-diffusion | Geometric Brownian motion augmented with a compound Poisson jump process, used here to model discrete macro shocks in FX rates. |