JIT Liquidity (Just-In-Time Liquidity)
AMM / DEXJust-In-Time Liquidity, or JIT liquidity, is a technique where a sophisticated actor provides liquidity to a pool immediately before a large trade is about to happen, and withdraws that liquidity immediately after, capturing most of the trading fees from that single transaction while contributing almost no ongoing liquidity to the pool.
Just-In-Time Liquidity, or JIT liquidity, is a technique where a sophisticated actor provides liquidity to a pool immediately before a large trade is about to happen, and withdraws that liquidity immediately after, capturing most of the trading fees from that single transaction while contributing almost no ongoing liquidity to the pool. It exploits the public visibility of the blockchain mempool to time deposits and withdrawals with millisecond precision around profitable trades.
Here is how it works in practice. The JIT provider watches the mempool for large incoming trades. When one appears, the provider rapidly submits a transaction to add a huge amount of liquidity to the relevant pool, getting processed right before the big trade. The trade executes against the now-much-deeper pool, paying fees proportionally distributed to all current liquidity — including the freshly added JIT liquidity. Immediately after, another transaction removes all that liquidity. The JIT provider earned fees from a trade they did not really support with sustained capital.
JIT liquidity is controversial because it extracts fee income from long-term liquidity providers who bear the real risks of the pool — including impermanent loss — by interposing at the last moment for cream-skimming. It is a form of MEV (see Maximal Extractable Value). Protocols have explored various defenses, including minimum liquidity durations and fee structures that favor long-term providers, but the practice persists wherever mempools are visible and block producers have ordering flexibility.
Example: Imagine a small bakery that charges a 10% service fee to every customer. You run a catering business. Every morning, you watch who lines up outside. The moment you see a large corporate order walking toward the door, you rush in, temporarily buy a half-share of the bakery, collect your cut of the huge fee from the corporate order, then immediately sell your share back. The original baker did all the actual baking; you just timed your share ownership to scoop the big commission.
JIT liquidity is also the main source of false positives in real-time drain detection: these bots add and remove large positions around single swaps (measured at around 4% of an $8M pool per block), so a naive detector treats the churn as exits. A percentage-of-pool threshold or netting changes across consecutive blocks filters it out.
Related
Docs
Top tokens on base
USDCUSD Coin$1.00$537.05M
WETHWrapped Ether$1.80K$298.08M
OpenAIOpenAI$0.041004$285.24M
cbBTCCoinbase Wrapped BTC$63.96K$197.31M
OpenAIOpenAI$0.041003$180.54M
kUSDK Dollar$1.00$171.67M
VIRTUALVirtual Protocol$0.61$16.36M
msETHMetronome Synth ETH$1.79K$8.53M
AEROAerodrome$0.52$8.50M
SOLSolana$76.47$7.80M