# Just-In-Time (JIT) AMM Liquidity & LP Fee Dilution Math

> Model Just-In-Time (JIT) concentrated AMM liquidity bundles: 1-tick atomic mint-swap-burn execution, passive LP fee dilution, CEX hedging, and v4 hook defenses.

Canonical: https://nftvenueledger.com/protocols/jit-just-in-time-liquidity-mint-burn-amm-fee-dilution
Last updated: 2026-11-16T12:13:54.668Z

**Publication:** NFTVenue Ledger
**Category:** Amm Clob Intent Dex Settlement
**Published:** 2026-11-14T06:40:25.915Z
**Author:** Dr. Devon Kurosawa, PhD (PhD in Distributed Systems & Cryptographic Protocol Verification)
**Reviewer:** Not recorded

## Answer-first summary

Just-In-Time (JIT) searchers bracket large public-mempool swaps inside a single MEV-Boost bundle—minting massive 1-tick concentrated liquidity before the swap and burning immediately after.

## Key takeaways

- Just-In-Time (JIT) liquidity brackets a large swap with a 1-tick mint before and an immediate burn after inside one atomic MEV-Boost bundle, holding 0 blocks of LVR risk.
- Unlike flash-loaned sandwich attacks, Uniswap v3 pool reentrancy locks prevent borrowing liquidity from the target pool itself—requiring external vault inventory or cross-protocol flash loans plus CEX hedging.
- While JIT narrows price impact for the targeted whale swap, it siphons 70%–90% of lucrative uninformed swap fees away from passive resting LPs.
- Uniswap v4 beforeRemoveLiquidity hooks eradicate 0-block JIT by enforcing >=1-block minimum hold times or donating early-exit penalties back to passive LPs.

## Related financial entities

- **Concentrated Liquidity AMM Mathematical Specification** (CL-AMM) — product: Algorithmic market-making protocol allowing liquidity providers to allocate capital within discrete price intervals, maximizing capital efficiency.
- **MEV-Boost Middleware Framework** (MEV-BOOST) — product: Open-source middleware used by Ethereum consensus validators to access a competitive market of externally built blocks, democratizing MEV rewards.
- **Uniswap v4 Singleton & Hook Architecture** (UNI-V4) — product: Fourth-generation decentralized exchange protocol featuring a unified singleton contract and modular hooks that customize pool execution logic.

## Analysis

Unlike predatory sandwich attacks that worsen a swapper's fill price, **Just-In-Time (`JIT`) Liquidity** improves execution for the incoming taker while parasitically **diluting passive Liquidity Providers** on [Concentrated Liquidity AMMs](/tokens/concentrated-liquidity-amm-spec). When an unprotected whale swap (`e.g., 2,500 ETH -> USDC`) enters the public mempool or an unguarded router, a JIT searcher constructs an atomic 3-transaction bundle via the [MEV-Boost PBS framework](/tokens/mev-boost-pbs-framework): `Tx_1` mints `$25M+` of liquidity into the **single active `tickSpacing` tick**, `Tx_2` executes the whale's swap (capturing 70%–90% of the swap fee **plus** acquiring ETH below CEX bid!), and `Tx_3` burns the position in the *exact same block* while hedging instantly on Binance or Coinbase.

Contextualized within our [concentrated AMM, CLOB & intent DEX master guide](/protocols/concentrated-liquidity-amm-clob-intent-dex-mev-guide-2026), JIT liquidity turns an open AMM pool into a permissionless pseudo-RFQ desk—starving passive resting LPs of high-volume noise fee revenue!

## Atomic 3-Transaction Bundle Mechanics & Why JIT Is NOT Risk-Free

A common misconception is that JIT searchers merely farm swap fees `f * V_swap`. Because `Tx_1` supplies `USDC` and `Tx_2` sells `ETH` into the pool, `Tx_3` withdraws **much more `ETH` and much less `USDC`** than deposited! Essentially, a JIT bundle is an **on-chain limit order fill**:

1. **Inventory Transformation**: If `USDC/ETH` pool fee is `5 bps` and the JIT searcher captures `alpha = 85%` of active tick liquidity `L_total = L_passive + L_JIT`, the searcher absorbs `85%` of the whale's sold `ETH` at `Spot_Pool * (1 - 0.0005)`.
2. **Instantaneous CEX Markout Requirement**: JIT is profitable **only if** external CEX bid `P_CEX_bid` exceeds the searcher's effective fill price plus `Tx_1 + Tx_3` mint/burn gas and builder priority tips! If the whale swap itself reflects toxic informed flow coinciding with a CEX dump, an unhedged JIT bot loses money—explaining why integrated CEX-DEX builders dominate JIT execution.

![Atomic 3-transaction Just-In-Time (JIT) liquidity mint-swap-burn MEV-Boost bundle execution flow](/api/figure?type=flow&title=Intra-Block%20Atomic%20JIT%20Liquidity%20Bundle&subtitle=Zero-block-duration%20concentrated%20liquidity%20injection%20bracketing%20a%20large%20mempool%20swap&steps=Tx%201%20%201-Tick%20Mint%3A%3AMint%20massive%20L_JIT%20in%20%5Btick_a%2C%20tick_b%5D%20right%20before%20whale%20tx%7CTx%202%20%20Whale%20Swap%3A%3ATaker%20gets%20near-zero%20price%20impact%3B%20L_JIT%20earns%20~85%25%20of%20fee%7CTx%203%20%20Instant%20Burn%3A%3ABurn%20L_JIT%20%2B%20collect%20fees%20in%20same%20block%20%280%20block%20LVR%20hold!%29%7COff-Chain%20CEX%20Hedge%3A%3AOffload%20acquired%20inventory%20on%20CEX%20perp%2Fspot%20within%20%3C50%20ms&metrics=LP%20HOLD%20DURATION%3A%3A0%20Blocks%3A%3AZero%20inter-block%20LVR%20exposure%7CFEE%20DILUTION%3A%3A70%25%20-%2092%25%3A%3AShare%20of%20whale%20fee%20siphoned%20from%20LPs%7CTAKER%20IMPACT%20CUT%3A%3A-65%25%20to%20-90%25%3A%3AImproves%20swapper%20fill%20price!%7CMINT%20%2B%20BURN%20GAS%3A%3A~240k%20-%20310k%3A%3ASets%20minimum%20profitable%20whale%20size)

## Systemic Harm: The Passive LP Adverse-Selection Death Spiral

If JIT improves taker execution, why do protocol designers on [Uniswap v4 singleton pools](/tokens/uniswap-v4-singleton-architecture) and concentrated DEXs in our [marketplaces directory](/marketplaces) (such as [9mm Pro](/marketplaces/9mm-pro) and [Astroport](/marketplaces/astroport)) build explicit anti-JIT hooks?

Because passive LPs rely on large uninformed ("noise") retail swaps to offset continuous [Loss-Versus-Rebalancing](/protocols/loss-versus-rebalancing-lvr-black-scholes-amm-adverse) on toxic arbitrage blocks! When JIT bots cherry-pick 85% of fees on lucrative $2M+ uninformed swaps while leaving passive LPs 100% exposed on toxic CEX-jump blocks, passive LP net APY turns negative—causing resting LPs to withdraw liquidity and degrading baseline spreads for every small swapper below the JIT gas threshold (`<$75,000` on L1).

## Welfare & Microstructure Impact Matrix: JIT vs Sandwich vs Resting LP

| Stakeholder / Metric | Unprotected Sandwich Attack | Atomic JIT Liquidity Bundle | v4 Anti-JIT Time-Weighted Hook |
| :--- | :--- | :--- | :--- |
| Large Taker ($2M Swap) | Severe loss (pushed to worst slippage limit) | **Positive surplus** (deepened active tick) | Standard resting-pool depth fill |
| Small Taker ($2k Swap) | Moderately exposed on low-gas L2s | Indirectly harmed as resting LPs exit pool | Tighter resting spreads preserved |
| Passive Resting LPs | Earn extra fee on 2x sandwich volume | **Severely diluted** (-75%+ fee share on big swaps) | Protected via minimum block-lock / exit tax |
| Required Searcher Capital | Flash-loanable inside single tx! | Often requires real inventory (cannot flash-swap same pool!) | Routed cleanly into formal RFQ / UniswapX |

![Minimum profitable whale swap notional for JIT liquidity across Ethereum L1 vs L2 gas regimes](/api/figure?type=bars&title=Minimum%20Swap%20Size%20Triggering%20JIT%20Bundles&subtitle=Break-even%20taker%20notional%20required%20to%20overcome%20mint%2Fburn%20gas%20and%20builder%20tips%20at%205%20bps%20vs%2030%20bps&steps=Eth%20L1%20%285%20bps%2C%2020%20gwei%29%3A%3AMin%20~%24650%2C000%20swap%20to%20clear%20~%24180%20mint%2Fburn%20gas%20%2B%20hedge%7CEth%20L1%20%2830%20bps%2C%2015%20gwei%29%3A%3AMin%20~%24110%2C000%20swap%20due%20to%206x%20higher%20fee%20capture%20per%20%24%7CArbitrum%2FBase%20%285%20bps%29%3A%3ANo%20public%20mempool%3B%20JIT%20impossible%20unless%20sequencer%2FOFA%20leaks%7Cv4%20JIT-Tax%20Hook%20Pool%3A%3A20%20bps%20same-block%20withdrawal%20penalty%20kills%200-block%20JIT!&metrics=POOL%20REENTRANCY%3A%3ALocked%3A%3ACannot%20flash-borrow%20from%20target%20v3%20pool%7COPTIMAL%20JIT%20SHARE%3A%3Aalpha%20%3D%2075%25-90%25%3A%3ADiminishing%20marginal%20share%20vs%20capital%20cost%7CV4%20BLOCK%20LOCK%3A%3A%3E%3D%201%20Block%3A%3AbeforeRemoveLiquidity%20anti-JIT%20guard%7CJIT%20PENALTY%20DONATE%3A%3ApoolManager.donate%3A%3ARedirects%20early-exit%20fee%20to%20resting%20LPs!)

## Optimal JIT Liquidity Sizing (`L_JIT*`) & Passive Dilution Equation

Suppose resting passive liquidity in active tick `[P_a, P_b]` is `L_0`, incoming whale swap pays gross fee `F_gross = f * V_swap`, CEX hedge spread edge per filled dollar is `e_hedge` (can be positive or slightly negative), and capital lock/gas cost is `C_fixed + c_cap * L_JIT`:

```formula
JIT Searcher Net Profit & Optimal Liquidity Injection (L_JIT*):
 Share_JIT(L_JIT) = L_JIT / (L_0 + L_JIT)
 Pi_JIT(L_JIT) = Share_JIT(L_JIT) * V_swap * (f + e_hedge) - c_cap * L_JIT - Gas_MintBurn
 First-Order Optimal Injection (dPi / dL_JIT = 0):
 L_JIT* = max(0, sqrt( (L_0 * V_swap * (f + e_hedge)) / c_cap ) - L_0)

Worked Mainnet 3,000 ETH ($9.0M) Swap on 5 bps ETH/USDC Pool:
 Resting tick depth equivalent = $3.0M (L_0 = 3.0); V_swap = $9.0M; f = 5.0 bps; e_hedge = +1.5 bps (CEX bid higher)
 Gross extractable edge V_swap * (f + e_hedge) = $9,000,000 * 0.00065 = $5,850; Gas_MintBurn = $140
 With intra-block flash/prop capital cost c_cap = $80 per $1M equivalent:
 => L_JIT* = sqrt((3.0 * 5,850) / 80) - 3.0 = 14.81 - 3.0 = $11.81M equivalent injected!
 => Share_JIT = 11.81 / 14.81 = 79.7% (Passive LPs lose 79.7% of the $4,500 swap fee -> diluted from $4,500 down to $913!)
```

## Uniswap v4 Anti-JIT Hooks: Block-Locks & `donate` Exit Penalties

In [Uniswap v4 singleton pools](/protocols/uniswap-v4-singleton-flash-accounting-dynamic-fee-hooks), pool creators neutralize 0-block JIT dilution inside `beforeRemoveLiquidity`: if `block.number - lastMintBlock[positionId] < MIN_HOLD_BLOCKS`, the hook either reverts or confiscates 100% of accrued fees plus a `10 bps` principal haircut via `PoolManager.donate` straight back to resting in-range LPs! Compare predatory takers' risks next in [sandwich MEV optimal frontrun sizing](/protocols/sandwich-mev-slippage-tolerance-optimal-frontrun-sizing) across our [AMM, CLOB & Intent DEX hub](/topics/amm-clob-intent-dex-settlement).

## Frequently asked questions

### Does Just-In-Time (JIT) liquidity hurt or help the trader whose swap is targeted?

Directly, JIT helps the targeted swapper by temporarily multiplying active-tick liquidity 4x–10x right before execution, reducing price impact; indirectly, chronic JIT drives passive LPs out of pools.

### Can a searcher execute JIT liquidity using zero capital via a Uniswap v3 flash swap?

Not from the target pool itself because UniswapV3Pool Slot0.unlocked prevents reentering mint during flash, though searchers borrow inventory free for 1 tx via Aave/Balancer/Maker flash loans and hedge residual delta on CEXs.

### Why is JIT liquidity nearly non-existent on Arbitrum and Base compared to Ethereum L1?

JIT requires observing the pending whale swap before block execution; L2 rollups with private single-sequencer mempools do not broadcast pending user calldata publicly prior to sequencing.

### How do Uniswap v4 hooks convert JIT attempts into yield for passive LPs?

A JIT-penalty hook tracks the block.number of every modifyLiquidity(+) call and deducts an early-withdrawal fee during same-block modifyLiquidity(-), calling poolManager.donate to credit resting LPs.


## Source URLs

- https://uniswap.org/whitepaper-v3.pdf
- https://github.com/Uniswap/v4-core/blob/main/docs/whitepaper-v4.pdf
- https://arxiv.org/abs/2309.08431

## Citation

- APA: Dr. Devon Kurosawa, PhD. (2026). Just-In-Time (JIT) AMM Liquidity: Intra-Block Mint-Swap-Burn Fee Dilution & LP Defense. NFTVenue Ledger. https://nftvenueledger.com/protocols/jit-just-in-time-liquidity-mint-burn-amm-fee-dilution
- Canonical article: [Just-In-Time (JIT) AMM Liquidity: Intra-Block Mint-Swap-Burn Fee Dilution & LP Defense](https://nftvenueledger.com/protocols/jit-just-in-time-liquidity-mint-burn-amm-fee-dilution)
- Site research index: [NFTVenue Ledger](https://nftvenueledger.com/llms-full.txt)
