What Is “Just-in-Time” (JIT) Liquidity and How Does It Relate to Sandwich Attacks?
JIT liquidity is a strategy where a liquidity provider (LP) observes a large pending trade in the mempool and temporarily deposits liquidity into the AMM pool just before the trade executes. This provides better pricing for the victim, but the LP immediately withdraws the liquidity, capturing the trading fees and potentially the MEV profit that would have gone to a sandwich attacker.
While it can reduce the negative impact on the victim, it is still a form of MEV extraction.