Strategic Analysis of Just-In-Time Liquidity Provision in Concentrated Liquidity Market Makers
This paper presents the first formal transaction-level model of Just-In-Time (JIT) liquidity provision in Concentrated Liquidity Market Makers, characterizing optimal strategies that reveal current providers significantly underperform due to unaccounted price impact while demonstrating that strategic JIT deployment enhances trader efficiency at the expense of passive liquidity provider profits.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a bustling digital marketplace where people trade digital tokens. In this world, there are two main types of players: Passive Liquidity Providers and Just-In-Time (JIT) Providers.
The Setting: The Digital Marketplace
Think of the marketplace as a giant, automated vending machine (an Automated Market Maker, or AMM).
- Passive Providers are like people who fill the vending machine with snacks and leave them there for days or weeks. They earn a small fee every time someone buys a snack, but they take a risk: if the price of snacks changes while they are away, they might lose money compared to just holding the snacks in their pocket.
- JIT Providers are like hyper-alert street vendors. They don't keep snacks in the machine all day. Instead, they watch the machine, wait for a specific moment when a big customer is about to buy a huge amount of snacks, and then instantly stuff the machine with extra snacks just for that one transaction. They grab a huge chunk of the fee, then immediately remove their snacks.
The Problem: The "Sandwich" and the Hidden Cost
The paper focuses on these JIT providers, specifically in a modern version of the vending machine called a Concentrated Liquidity Market Maker (CLMM). In this version, providers can choose to put their snacks only in a specific price range (like only selling "chocolate" flavors, not "vanilla").
The JIT providers use a strategy often called a "sandwich attack":
- They see a big trade coming.
- They add their liquidity right before the trade happens.
- The big trade goes through, and the JIT provider collects a massive fee because they provided most of the liquidity for that moment.
- They remove their liquidity right after.
The Catch: The paper argues that many JIT providers are playing this game blindly. They are so focused on grabbing the fee that they forget to check the price impact.
The Analogy: Imagine you are a JIT provider. You see a customer coming to buy 100 apples. You rush to add 100 apples to the stand.
- The Fee: You get a commission for helping the sale.
- The Price Impact: Because you added so many apples right before the sale, the price of apples on the stand might shift in a way that hurts you when you take your apples back out. If the price shifts against you, you might actually lose money on the apples themselves, even though you collected a fee.
What the Paper Found
The researchers built a mathematical model (a set of rules) to figure out the perfect strategy for these JIT providers. They asked: "If you know exactly how the price will move, how much money should you put in, and exactly where, to make the most profit?"
Here are their main discoveries, translated into plain English:
1. The "Blind" Providers are Leaving Money on the Table
The researchers looked at real data from the Uniswap exchange. They found that current JIT providers are acting like drivers who ignore the GPS. They are making trades that lose them money or earn them very little.
- The Result: If these providers used the "perfect strategy" calculated by the paper's model, they could have made up to 69% more money on average. They are currently failing to account for how their own actions change the price.
2. It's Not About the Fee; It's About the Price Shift
Most people think JIT providers make money just by collecting the transaction fee. The paper says no.
- The Result: For these providers, the real money comes from price impact (the shift in value of the tokens they hold during the split-second they are in the market). In fact, about 93% of their profit comes from this price movement, not the fee itself. They are essentially betting on the price moving in their favor for a split second.
3. The Double-Edged Sword
The paper also looked at what happens to everyone else if JIT providers start playing perfectly.
- For Traders (The Customers): It's good news. When JIT providers add liquidity perfectly, the "slippage" (the extra cost a customer pays because the price moves while they are buying) goes down. The trade becomes smoother and cheaper for the buyer.
- For Passive Providers (The Long-term Holders): It's bad news. If JIT providers are too good at their job, they steal almost all the fees. The paper estimates that optimized JIT providers could cut the earnings of passive providers by up to 44% per trade.
The Three Types of Trades
The paper categorizes the trades JIT providers face into three "flavors":
- The Overpriced Trade: The market price is higher than the machine's price. The JIT provider steps in, sells high, and makes a profit. This is the "easy money" scenario.
- The Arbitrage Trade: The machine's price is wrong, and a trader is fixing it. The JIT provider steps in, but the price moves against them. They usually lose money here unless the fee is huge.
- The "Overshoot" Trade: The price moves past the fair value and then corrects. The smart JIT provider only puts money in for the part of the trade where they will win, and stays out of the part where they will lose.
The Bottom Line
The paper concludes that while Just-In-Time liquidity providers are a powerful force that makes markets more efficient for traders, they are currently playing a suboptimal game. By using a smarter, math-based approach to decide when to enter and how much to invest, they could drastically increase their profits. However, doing so would come at the direct expense of the long-term, passive investors who keep the machine running.
The authors suggest that the future of these markets depends on finding a balance where these "sniper" providers can do their job without completely eating the profits of the "farmer" providers who keep the system alive.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.