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.

Just-In-Time Liquidity Extraction Mechanics
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.
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.
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.
| Field | Value | Why 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. |
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
| Stakeholder | Impact of JIT Extraction | Failure Mode | Action |
|---|---|---|---|
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 |
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.
Canonical Resources and Further Reading
Use these resources to verify the mechanics behind Uniswap V3 just-in-time liquidity, reconstruct JIT transaction patterns, and separate protocol behavior from MEV infrastructure assumptions.
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
- Arbitrum
- Optimism
- Polygon
- Avalanche
- Cronos

Non-EVM ecosystems
- Solana
- Sui
- Aptos
- Hedera
- Stellar
- NEAR
Additional ecosystems
- Polkadot
- Cosmos
- TON
- Cardano
- Algorand
- Tempo
Also available for Base, appchains, custom EVM networks, and cross-chain product architecture.
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.
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
“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.”
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.
Exploration & Strategy
Define your product goals and choose the right blockchain architecture for your use case.
Architecture & Design
Design the smart contracts, tokenomics, and security parameters of your system.
Development & Integration
Build and integrate with wallets, oracles, and front-end dApps for a seamless experience.
Security & Launch
Comprehensive audits followed by a risk-managed mainnet deployment to protect your users.
Discover our
blockchain development services.
We build production-grade blockchain solutions for top-tier projects across DeFi and Web3.
Need a blockchain engineering team?
Send the project context and we will respond with next steps, scope questions, and a practical path to delivery.


