Risk & Research

MEV and Liquidity Providers: How Execution Conditions Affect LPs

LP returns are path-dependent. See how price moves, arbitrage, ordering, slippage, and fee rules shape realized outcomes—and when to step aside.

You watch a thin token pair on-chain. A large market order hits the public mempool. Before it confirms, a searcher slips in a buy, your pool’s price jumps, the big order executes worse than quoted, and then the searcher sells back to the pool. You, the liquidity provider, collect three sets of swap fees—but your inventory is churned twice in seconds, at prices chosen by someone else. Whether you came out ahead has little to do with a headline APR and everything to do with who traded, in what order, and how far your pool was off from the rest of the market when those trades hit.

The right mental model is not “passive yield.” A liquidity provider position is a continuously repriced inventory. Its realized outcome depends on the bonding curve you underwrite, the trades and arbitrage it invites, and the ordering of transactions that determine execution. Fees can offset those forces—or not—depending on the path.

Red and white light trails stream past dark city buildings at night.
Fast-moving liquidity through a city network. Image by Benjamin Chambon under the Unsplash License.

Your inventory rides a curve, not a forecast

In constant‑product designs such as Uniswap v2, the pool enforces x·y = k, and liquidity providers receive a proportional share of trading fees from every swap 1. That simple rule is the baseline for understanding how trades move the price and your inventory; our primer on the constant‑product formula sketches the mechanics. Because the pool price is set by its own reserves, sustained movement in the external relative price of the assets can leave a provider worse off than just holding the pair—what Uniswap’s documentation calls “impermanent loss” 1. Fees are earned along the way, but they are not a guarantee of outperformance versus holding; the timing of price moves and withdrawal can dominate 1.

Two implications follow:

  • Fees accrue proportional to flow, not to the risk you bear at the end of the path 1.
  • Divergence between your pool price and external markets is the source of both arbitrage flow that pays fees and inventory changes that can create a shortfall versus holding 1 4.

If you supply liquidity, you are underwriting trades along a curve today for unknown prices tomorrow. Our short guide on liquidity provider fees explains where the fee slice comes from and what it leaves out.

Scenario 1: External price jumps; arbitrage re‑aligns your pool

Mechanism: An external market moves up fast. Your constant‑product pool lags because it only reprices when on‑chain orders hit. Arbitrageurs buy the now‑underpriced asset from your pool until the pool price converges, paying swap fees as they go 1 4. You end up with fewer units of the rising asset and more of the other one—an inventory mix shift. The value of that mix, plus accumulated fees, is what you can withdraw.

What to measure:

  • Distance from external price when the first arbitrage trade hits. Wider gaps enable larger arbitrage profits and thus more fee volume, but also larger reserve changes 4.
  • The fee rate and how much volume crosses during the correction window 1.

Trade‑off: The BIS describes how liquidity providers earn fees but can suffer losses when prices on other markets diverge from the bonding curve, because arbitrage trades pull the pool back to the new level while changing your inventory 4. Open research shows price changes do not necessarily imply losses once you include fees from both traders and arbitrageurs; an “arbitrage‑friendly” environment can even benefit liquidity providers by increasing compensated flow 5. Both can be true: arbitrage is simultaneously a fee‑paying correction mechanism and a source of adverse selection on your inventory 4 5.

Decision rule: This position helps you if the fee income during convergence is large enough to cover the value you’d have had by simply holding the original asset pair through the same move. It hurts you if the inventory shift dominates the fee accrual. The model (constant‑product plus fee) is useful for approximating that balance, but it stops being enough when transaction ordering and path‑dependent execution distort the flow you assumed would arrive 1 4.

Scenario 2: A public‑mempool whale in a thin pool invites a sandwich

Mechanism: The BIS notes that when orders are publicly visible before execution, others can observe size and expected price impact and position transactions immediately before and after the target order 4. Flashbots frames this as part of the broader “MEV” problem—value arising from transaction ordering in stateful blockchains—and presents private transaction routing as protection against frontrunning and sandwiching 3.

Step‑by‑step in a thin pool:

  1. A large buy is broadcast to the public mempool with a tight slippage setting.
  2. A searcher submits a priority buy that executes first, moving the pool price up (your pool sells the asset; you earn fees).
  3. The original buy executes worse than quoted, paying more and pushing the price higher (you earn fees again).
  4. The searcher sells back to the pool at the new higher price, restoring it near the post‑trade level (you earn a third fee slice, and your final inventory may be worse than without the sandwich because two extra trades churned reserves).

Incidence: “MEV” here is not a protocol fee; it is value extracted by reordering flow. Its cost can be borne by the targeted trader (worse execution), by liquidity providers (unfavorable reserve churn not offset by fees), by the searcher who paid bid‑up gas, or shared among them depending on details 3 4.

Mitigation and limits: Private orderflow sent through systems that aim to avoid public mempools can reduce exposure to frontrunning or sandwiching by hiding transaction details until inclusion 3. A low slippage setting is only a constraint on execution, not a shield against ordering manipulation; pool depth, routing, and whether submission is public or private determine the opportunity for a sandwich 4 3.

Decision rule: In thin pools with public orderflow, your fee APR can look high on busy days, yet your realized outcome can be worse than if the same net order arrived without pre/post trades. If you cannot observe or control orderflow quality, treat fee spikes around large public trades with caution.

Dynamic fees can help—or pay you to hold the bag

Curve’s documentation states that most current and all new pools use dynamic fees that increase when a swap would make a pool more imbalanced, explicitly to raise liquidity provider compensation during volatility. It distinguishes “stable‑swap” and “crypto‑swap” fee regimes, each with its own dynamic behavior 2.

Scenario: One‑sided flow or a depeg event in a stable‑swap pool. As traders try to exit the weakening asset, the pool grows imbalanced. The dynamic fee function raises the fee rate as imbalance worsens, increasing your per‑trade compensation for taking the other side 2.

Trade‑off: Higher fees are welcome when volatility is transitory and orderflow mean‑reverts. But if the pool is being used as exit liquidity and the imbalance persists, your inventory can concentrate in the weakening asset while the extra fees may not fully offset the mark‑to‑market loss of that pile. The mechanism is designed to pay you more when you bear more imbalance risk; it does not promise that this is enough in all conditions 2.

Decision rule: Inspect the fee regime of the specific Curve pool and ask whether the dynamic fee at the current imbalance would plausibly compensate you for being stuck with the off‑par asset if mean reversion never comes.

Ordering, slippage, and fees: similar words, different levers

It is easy to conflate three ideas—slippage, price impact, and MEV—because all show up at execution. They act through different levers:

Concept What it controls Who sets it How it affects liquidity providers
Protocol fee Fraction of each swap paid to liquidity providers 1 Protocol parameters Direct revenue; size relative to adverse inventory change determines outcome 1
Dynamic fee (Curve) Fee rises with imbalance 2 Protocol parameters Raises revenue when flow worsens imbalance; may or may not cover concentration risk 2
Slippage tolerance Max price movement a user will accept Trader parameter Constrains whether a swap executes; does not prevent front‑running or sandwiching on its own 4
Price impact How a trade moves the pool along its curve Pool reserves and route Determines how far inventory shifts and how much fee volume accrues 1 4
MEV (ordering) Relative placement of transactions Builders/searchers/validators and routing choices Can insert extra reserve‑moving trades; incidence split across traders, liquidity providers, and searchers 3 4

The practical point: a high quoted fee APR says nothing about ordering quality or external price gaps, which are the conditions that create or destroy value on the path you actually live through.

When models help—and where they stop

Useful:

  • Constant‑product math tells you how reserves and prices change per unit of trade, and how fees scale with volume 1.
  • The BIS framework clarifies why divergence from external prices is the root of both arbitrage revenue and inventory risk 4.
  • The Curve fee schedule indicates how your compensation rises with imbalance in that design 2.
  • Research showing that fee‑rich arbitrage paths can offset price moves guards against treating “price up ⇒ liquidity providers lose” as an identity 5.

Not sufficient:

  • Ignoring ordering. Public pre‑trade transparency invites pre‑ and post‑trades that alter your reserve path and fee accrual in ways the simple model does not capture 4.
  • Assuming fee APR is a forecast. It is a backward‑looking ratio that can be dominated by a single volatile window or a few sandwiched blocks 1 4.
  • Treating “MEV” as a protocol tax. Value redistribution from ordering depends on market structure and routing, and its incidence varies by situation 3 4.

How to trace value through a position

To reason about an existing or prospective position, make the path explicit:

  1. Curve and fee rule: Identify the bonding curve and the fee rule you underwrite (constant‑product fee split; Curve stable/crypto with dynamic fees) 1 2.
  2. External anchors: Note how the pool price is linked—or not—to external markets you believe set fair value 4.
  3. Orderflow quality: Decide whether the majority of size will arrive via public mempool, via private routes positioned to avoid frontruns, or via integrators with their own routing policies 3 4.
  4. Volatility regime: Ask whether flows are likely to mean‑revert (fees attractive) or persist one‑sided (inventory risk), and how dynamic fees respond if applicable 2.
  5. Exit conditions: Define the observable conditions that will trigger your withdrawal, such as a large external price gap to your pool, persistent imbalance, or public‑mempool whales in thin liquidity.

What to check before you act

  • Does the pool’s curve and fee policy match the volatility you expect, and can you point to the specific fee rule that would compensate you during stress 1 2?
  • If an external market moves 5–10% fast, which venues will deliver the first arbitrage, and how wide could the gap be when they hit your pool 4?
  • Is the likely orderflow public or private? If public, are you comfortable with added reserve churn from potential pre‑/post‑trades on thin routes 3 4?
  • In a Curve‑style pool, what is today’s imbalance and corresponding dynamic fee, and would you still be content holding the concentrated inventory if fees slow tomorrow 2?
  • Is the fee APR you see driven by a few volatile blocks, and would your outcome still look acceptable without those spikes 1 4?

The bottom line for liquidity providers

Your position is a market‑making commitment, not a yield product. You are paid per unit of orderflow that your curve accepts, but your terminal wealth depends on when that flow arrives relative to external price moves and how transactions are ordered. Arbitrage is both your counterparty and your customer: it realigns your pool while paying you, and it can leave you with a different inventory than you intended 4 5. MEV is not a fee; it is value from ordering, sometimes bearing on you, sometimes on traders, sometimes shared 3 4.

Before you deposit, sketch the exact execution path that would make you whole: the price gap that brings in arbitrage, the fee rule that pays you for imbalance, the routing that protects you from gratuitous churn, and the withdrawal trigger if those conditions fail to appear. That discipline beats any headline APR.

References

  1. Understanding Returns | Uniswap Developers
  2. Overview | Curve Knowledge Hub
  3. Welcome to Flashbots
  4. Trading in the DeFi era: automated market-maker
  5. Impermanent Loss Conditions: An Analysis of Decentralized Exchange Platforms

Keep the model, not just the answer.

Every liquidity position has a context. Continue through the full research library to connect this idea with the mechanism, risks, and market conditions around it.