Informal meeting room with exposed brick and plants, team discussing liquidity strategy around a table with laptops, natural window light, casual candid photography.
Protocols

Just-In-Time Liquidity Extraction Mechanics

A technical walkthrough of how MEV searchers exploit Uniswap V3's concentrated liquidity to atomically mint and burn positions within a single block, capturing swap fees while imposing zero inventory risk on passive LPs.
introduction
MEV-DRIVEN FEE THEFT

What Is Just-In-Time (JIT) Liquidity Extraction?

A technical breakdown of how MEV searchers atomically mint and burn Uniswap V3 liquidity within a single block to capture swap fees without bearing inventory risk.

Just-In-Time (JIT) liquidity extraction is an MEV strategy that exploits the deterministic, transparent nature of the Ethereum mempool to siphon swap fees from passive Uniswap V3 liquidity providers. A searcher watches the mempool for a pending swap transaction targeting a V3 pool. Before the swap is mined, the searcher atomically mints a highly concentrated liquidity position at the exact ticks surrounding the current price, provides massive liquidity for that single swap, collects the fees, and then immediately burns the position—all within the same block. The searcher never bears the inventory risk or divergence loss that passive LPs accept, yet captures a disproportionate share of the fee revenue.

The transaction structure enabling JIT relies on block.coinbase payment or a builder relationship to guarantee atomic execution. The searcher bundles a mint transaction before the target swap and a burn transaction after it, paying the block builder to sequence them contiguously. Pools with higher fee tiers (1% or 0.3%) and lower passive TVL are the most vulnerable, as the searcher's capital can dominate the active liquidity range and claim the majority of the swap fee. The extraction is economically viable when the swap size is large enough that the captured fee exceeds the gas cost of the mint-burn sandwich, including the builder bribe. This creates a structural wealth transfer from passive LPs to MEV searchers, reducing the risk-adjusted returns that honest LPs can expect.

For LP operators and protocol architects, JIT represents a measurable drag on passive LP profitability that is not captured by standard impermanent loss or LVR models. Teams should monitor JIT extraction rates on pools where they deploy capital, using block-level data to quantify the percentage of fees being extracted. Mitigation strategies include deploying liquidity on pools with lower fee tiers where JIT is less profitable, using off-chain order flow auctions like UniswapX that obscure swap details from the public mempool, or designing V4 hooks that impose a minimum liquidity provision time. Chainscore Labs can assist risk teams in quantifying JIT impact on specific pool positions and evaluating the economic viability of proposed mitigation mechanisms.

ATOMIC LIQUIDITY EXTRACTION

JIT Extraction: Quick Facts

Key characteristics of Just-In-Time liquidity extraction on Uniswap V3, including the actors involved, the transaction structure, and the pool conditions that enable extraction.

FieldValueWhy it matters

Extraction mechanism

Atomic mint-and-burn of a concentrated liquidity position within a single block

The LP token is minted and burned in the same transaction, so the extractor never holds the position outside the block and bears zero inventory risk.

Primary actors

MEV searchers and block builders with mempool access

Extraction requires seeing pending swap transactions before they land onchain and having the ability to position a transaction immediately before the target swap.

Revenue source

Swap fees from the target transaction

The extractor captures fees that would otherwise accrue to passive LPs who provided liquidity over the full duration of the block or longer.

Most vulnerable pools

High-volume stablecoin and ETH pairs with low fee tiers (1–5 bps)

Low-fee pools have tight tick spacing, allowing extractors to provide extremely narrow-range liquidity that captures a large share of fees from a single swap with minimal capital.

Capital requirement

Low relative to swap size due to extreme tick concentration

Extractors can provide liquidity at the exact ticks the swap will cross, minimizing capital at risk and maximizing fee share per unit of capital deployed.

Impact on passive LPs

Reduces fee revenue without reducing position risk

Passive LPs bear divergence loss and inventory risk for the entire block but lose a portion of fee revenue to extractors who bear neither.

Mitigation approaches

Off-chain order flow auctions (e.g., UniswapX), encrypted mempools, or hook-based fee structures in V4

Each approach attempts to either hide swap intent from searchers or alter the fee economics to make JIT extraction unprofitable.

Monitoring signal

Transactions that mint and burn the same LP token within a single block

LP operators and risk teams can query block data to measure JIT prevalence in pools where they provide liquidity and adjust return expectations accordingly.

technical-mechanism
MEV-DRIVEN LIQUIDITY EXTRACTION

How JIT Extraction Works: The Atomic Mint-Burn Cycle

A technical walkthrough of the atomic mint-and-burn sequence searchers use to extract swap fees from Uniswap V3 pools without bearing inventory risk.

Just-In-Time (JIT) liquidity extraction is an MEV strategy that exploits the discrete, per-block nature of Uniswap V3's concentrated liquidity model. A searcher monitors the public mempool for a pending swap transaction targeting a specific V3 pool. Before the swap executes, the searcher atomically mints a highly concentrated liquidity position at the exact ticks surrounding the current price, provides the required tokens, lets the swap execute against their newly minted position to capture the fees, and then burns the position—all within a single atomic transaction bundle. The searcher never holds the inventory outside the block, eliminating directional price risk while siphoning fee revenue that would have accrued to passive, in-range liquidity providers.

The atomic mint-burn cycle is technically feasible because Uniswap V3's mint and burn functions can be called within the same transaction as a swap, and the fee growth tracking inside the pool's tick bitmap updates instantaneously. A searcher's bundle typically uses eth_call simulations to identify a target swap, then constructs a transaction sequence: a flashloan (if needed) to source the paired tokens, a mint call to create a position at the exact active tick, the target swap that generates fees, a burn and collect to realize the fees and principal, and a flashloan repayment. The searcher's profit is the swap fee revenue minus gas and any flashloan premium. This strategy is most profitable in pools with high fee tiers (1% or 0.3%) and volatile, large-size swaps where the absolute fee capture justifies the gas cost, making stablecoin pairs and low-fee tiers less attractive targets.

For passive LPs, JIT extraction represents a direct, structural reduction in fee revenue that is not captured by standard impermanent loss or LVR models. The searcher's position, though ephemeral, competes for the same fee flow during the exact block window where it is most valuable. LP operators monitoring pool returns should be aware that reported fee APRs may overstate what a passive position actually earns, particularly in pools with observable JIT bot activity. Mitigation strategies under discussion include off-chain order flow auctions like UniswapX, which can blind the mempool and prevent searchers from front-running swaps, and protocol-level changes that could make JIT less profitable. Teams assessing the economic viability of a V3 or V4 LP strategy should model JIT extraction as a persistent fee leakage vector and verify whether their target pools exhibit mempool-visible swap patterns that attract this behavior.

IMPACT SURFACE BY ACTOR

Who Is Affected by JIT Extraction?

Passive Liquidity Providers

Passive LPs are the primary victims of JIT extraction. When a JIT bot mints a concentrated position around the current tick just before a large swap and burns it immediately after, it captures the majority of the swap fee that would have accrued to existing in-range LPs.

Impact:

  • Fee APR reduction of 10-30% in targeted pools, depending on volatility and fee tier
  • Most severe in high-volume, low-fee-tier pools (5bps and 30bps) where JIT bots can profitably outbid passive positions
  • Passive LPs in wider ranges are disproportionately affected because JIT positions are always tighter around the active tick

Action: LPs should monitor JIT extraction rates in their target pools, adjust return expectations downward, and consider whether narrow-range active management or V4 hook-based fee structures can reclaim value currently lost to extractors.

vulnerability-profile
JIT EXTRACTION SURFACE

Pool Vulnerability Profile

Not all Uniswap V3 pools are equally vulnerable to Just-In-Time (JIT) liquidity extraction. The attack surface is defined by specific pool parameters, mempool conditions, and the economic viability of the extraction transaction itself.

01

High-Fee Tier Pools

Pools with 1% fee tiers are the primary target for JIT bots. The higher fee provides a margin that can cover the gas costs of minting and burning a position within a single block. LPs in these pools should assume a significant portion of swap fees are being extracted. Teams operating on these pools must model a lower effective yield than the nominal fee tier suggests.

02

High-Volatility, High-Volume Pairs

Pools with large, predictable swap volumes, such as ETH/USDC or ETH/USDT, present a lucrative target. JIT bots monitor the public mempool for large pending swaps. The combination of a large notional value and a wide fee tier creates the economic incentive for extraction. Passive LPs in these pools are systematically disadvantaged against searchers who can observe and react to order flow before it confirms.

03

Mempool Visibility Requirement

JIT extraction is only possible on chains where transactions are visible in a public mempool before confirmation. On chains using private mempools, encrypted mempools, or Flashbots Protect-style RPC endpoints for swap submission, the attack surface is significantly reduced. Integrators and wallets can protect user swaps from JIT extraction by routing transactions through private submission channels, denying searchers the visibility required to front-run the trade.

04

Gas Cost vs. Extraction Profitability

The economic viability of a JIT attack is a direct function of the gas cost to mint and burn a position versus the fees extractable from the target swap. On Ethereum L1, high gas costs can make JIT unprofitable for smaller swaps. On low-cost L2s, the lower gas barrier makes a wider range of pools and swap sizes economically viable targets. LP risk models must account for the chain-specific gas environment when assessing JIT risk.

05

Tick Spacing and Liquidity Concentration

V3 pools with wider tick spacing require the JIT bot to provide liquidity over a broader price range, increasing the capital required and reducing the fee share captured per unit of liquidity. Narrow tick spacing allows for highly concentrated JIT positions that maximize fee capture. When assessing a pool's vulnerability, the tick spacing parameter directly influences the capital efficiency of an extraction attack.

06

Chain-Specific MEV Infrastructure

The sophistication of MEV infrastructure on a given chain determines the prevalence of JIT. Chains with mature searcher ecosystems, block builder integration, and low-latency relay networks see more systematic extraction. Teams deploying Uniswap V3 on new chains should assess the local MEV supply chain to understand the JIT risk profile before committing liquidity. A nascent MEV ecosystem may provide a temporary window of lower extraction before searchers deploy JIT strategies.

EXTRACTION SURFACE AND OPERATIONAL EXPOSURE

Risk Matrix: JIT Extraction Impact by Stakeholder

Maps the specific negative impacts of Just-In-Time liquidity extraction across different protocol participants, from passive LPs to MEV searchers, and identifies the concrete actions each stakeholder group should take to quantify or mitigate their exposure.

StakeholderImpact of JIT ExtractionFailure ModeAction

Passive Liquidity Providers

Swap fee revenue is systematically siphoned by atomic LP mint/burn transactions; LPs bear full inventory risk without capturing proportional fee income

LP returns fall below modeled expectations, making positions uneconomical relative to holding the underlying assets

Recalibrate return models to account for JIT-adjusted fee yields; migrate liquidity to pools with fee tiers or characteristics that reduce JIT profitability

MEV Searchers

JIT extraction creates a competitive latency race for mempool visibility and atomic inclusion; only searchers with optimal infrastructure capture the opportunity

Searchers without low-latency mempool access or advanced bundle construction are structurally excluded from JIT revenue

Evaluate infrastructure requirements including relay connections and builder relationships; model profitability against gas costs and competition density per pool

Swappers and Traders

JIT liquidity provision can marginally improve execution by concentrating liquidity at the current tick during the swap, but the fee extraction ultimately comes from the swap spread

Swappers may experience slightly better execution on individual trades, masking the long-term liquidity flight from passive LPs that degrades pool depth

No immediate action required for swappers; monitor pool depth trends in JIT-vulnerable pools to anticipate execution quality degradation

Protocol Governance

JIT extraction undermines the value proposition for passive LPs, potentially driving liquidity to alternative venues or fee structures that reduce protocol TVL and fee generation

Sustained LP exodus from vulnerable pools erodes the protocol's liquidity base, reducing its competitiveness as a trading venue

Evaluate fee-tier adjustments, hook-based mitigation designs, or auction mechanisms that could reduce JIT viability without harming passive LP returns

Wallet and Aggregator Integrators

JIT activity alters the expected execution environment; routing models that assume stable liquidity depth may misprice swaps or route through pools with degraded passive liquidity

Routing algorithms that do not account for JIT-adjusted liquidity profiles may produce suboptimal execution for users

Incorporate JIT prevalence data into routing models; monitor pool health metrics beyond static TVL to include passive LP retention and fee capture rates

Risk and Audit Teams

JIT extraction is not a smart-contract vulnerability but a structural economic extraction that falls outside standard audit scope; it represents a protocol-level risk to LP sustainability

Protocols building on Uniswap may underestimate LP attrition risk and overestimate the reliability of fee-based incentive models

Include JIT extraction analysis in protocol risk assessments; model LP return expectations under JIT-adjusted fee capture rates for any pool used as infrastructure

Hook Developers (V4)

V4 hooks that modify fee dynamics, tick spacing, or swap behavior can either amplify or suppress JIT profitability, creating unintended extraction surfaces

A hook designed without JIT awareness may inadvertently create a pool that is highly vulnerable to extraction, harming LP adoption

Model JIT extraction vectors during hook design and testing; simulate atomic LP mint/burn profitability under the hook's modified pool parameters before deployment

JIT EXTRACTION DEFENSE

Mitigation Strategies and Monitoring Signals

Practical steps for liquidity providers, pool deployers, and protocol integrators to reduce JIT extraction exposure and detect active extraction campaigns. These strategies address the structural conditions that make pools vulnerable rather than attempting to block individual searchers.

JIT extraction is most profitable in pools where the fee tier is high relative to the expected price impact of a pending swap. The searcher's breakeven depends on capturing enough fees to cover gas costs and the risk of the swap not executing.

What to check:

  • Audit existing positions in 1% and 0.3% fee tier pools for above-average JIT exposure.
  • Model whether the fee tier is wide enough to make JIT profitable given typical swap sizes in the pool.
  • Consider migrating passive liquidity to lower fee tiers (0.05%, 0.01%) where JIT margins are compressed.

Why it matters: Lower fee tiers reduce the fee revenue a JIT searcher can capture in a single block, making the extraction unprofitable after gas costs. This is the most direct structural defense.

Readiness signal: Fee tier selection is justified by JIT exposure analysis, not just volatility assumptions.

Chains We Build On

Looking to build on a specific blockchain?

We build smart contracts, DeFi applications, wallets, tokenization platforms, and blockchain infrastructure across the major ecosystems teams choose today. That includes Ethereum, Arbitrum, Optimism, Polygon, Avalanche, Solana, Sui, Aptos, Hedera, Stellar, and NEAR, with support for additional EVM and non-EVM networks based on your product requirements.

EVM ecosystems

  • Ethereum logo
    Ethereum
  • Arbitrum logo
    Arbitrum
  • Optimism logo
    Optimism
  • Polygon logo
    Polygon
  • Avalanche logo
    Avalanche
  • Cronos logo
    Cronos

Non-EVM ecosystems

  • Solana logo
    Solana
  • Sui logo
    Sui
  • Aptos logo
    Aptos
  • Hedera logo
    Hedera
  • Stellar logo
    Stellar
  • NEAR logo
    NEAR

Additional ecosystems

  • Polkadot logo
    Polkadot
  • Cosmos logo
    Cosmos
  • TON logo
    TON
  • Cardano logo
    Cardano
  • Algorand logo
    Algorand
  • Tempo logo
    Tempo

Also available for Base, appchains, custom EVM networks, and cross-chain product architecture.

JIT LIQUIDITY EXTRACTION FAQ

Frequently Asked Questions

Operational questions and answers for liquidity providers, MEV researchers, and protocol architects analyzing the impact of Just-In-Time liquidity extraction on Uniswap V3 pools.

JIT bots target pools where the expected fee capture exceeds the gas cost of minting and burning a position within a single block. The most vulnerable pools share these characteristics:

  • High swap volume relative to TVL: A large pending swap in a pool with low passive liquidity allows the JIT bot to capture a disproportionate share of fees.
  • Wide fee tiers: Pools with 1% fee tiers offer higher per-swap revenue, making JIT extraction profitable even for moderately sized swaps.
  • Stable or correlated asset pairs: Pools where the bot does not need to hedge inventory risk (e.g., stablecoin-stablecoin or liquid staking token-ETH pairs) are preferred because the bot can immediately exit without directional exposure.
  • High mempool visibility: Pools on chains with public mempools and predictable block building (e.g., Ethereum mainnet) are more exposed than those on chains with encrypted mempools or FCFS ordering.

LP operators should monitor the ratio of swap volume to passive TVL and the frequency of large swaps relative to pool depth to assess their exposure.

Trusted by Industry Leaders

Delivering blockchain solutions for 5+ years.

We have partnered with 50+ leading DeFi protocols, NFT ecosystems, and fintech innovators to build secure, scalable, and capital-efficient blockchain products.

Selected Partners & Clients

ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
“I've been working with Chainscore Labs for last 3+ years, they've consistently delivered with strong ownership across multiple projects. The team is reliable and detail-oriented.”
L
Lee Erswell
CEO, Telos Foundation
how to get started

How to get started?

If you're looking for blockchain integration, ChainScore Labs has 5+ years of experience helping teams build and integrate exchanges, wallets, smart contracts, tokenization solutions, and protocol-connected products, we can help you choose the right path, integrate securely, and get to production faster. Our team consists of experienced blockchain developers and architects who can help you with your blockchain integration needs.

01

Exploration & Strategy

Define your product goals and choose the right blockchain architecture for your use case.

02

Architecture & Design

Design the smart contracts, tokenomics, and security parameters of your system.

03

Development & Integration

Build and integrate with wallets, oracles, and front-end dApps for a seamless experience.

04

Security & Launch

Comprehensive audits followed by a risk-managed mainnet deployment to protect your users.

Start a build

Need a blockchain engineering team?

Send the project context and we will respond with next steps, scope questions, and a practical path to delivery.