Just-in-Time (JIT) Liquidity Events
Fetch Uniswap V3 JIT Liquidity events with 1 line of code.
The Just-in-Time (JIT) liquidity events table contains DEX events from Uniswap V3 protocol for each JIT event.
JIT liquidity refers to the practice where liquidity is added and removed within the same block to capture trading fees and/or exploit arbitrage opportunities.
Each JIT event includes the following sequence of event
User A Minting LP
User B Swapping
User A Burning LP
Sample Query
Finding the volume of swaps on Uniswap V3 that were caught in between JIT swaps by liquidity pools.
Methodology
We use the dex.uniswap_v3_events
table to construct this table. This table contains all log events emitted from UniswapV3 protocol liquidity pools.
We first identify the JIT events within the same block must meet the following criteria:
Minting and Burning of LP within the same block.
Occur within the same liquidity pool (
mint.liquidity_pool_address = burn.liquidity_pool_address
).Are initiated by the same user (
mint.transaction_from_address = burn.transaction_from_address
).Have the
burn
event occurring after themint
event (mint.transaction_index < burn.transaction_index
).
We then identify swaps that occur within the JIT mint + burn event with the following criteria:
The JIT swap event should be performed within the same block as the burn-mint event
Occur within the same liquidity pool
Occur between the mint and burn JIT
Exclusion of Outliers: This model excludes liquidity provision from rebalancing contracts by Popsicle Finance.
Table Columns
Last updated