We previously shared that @Uniswap v3 enables a new type of MEV attack — Just-in-Time (JIT) Liquidity Sandwiching, which has siphoned >$1M USD in profits away from non-mempool-aware Uniswap v3 LPs. Reactions to this discovery have been mixed... 👇
dune.xyz/ChainsightAnal…
From @Uniswap — "it's a powerful feature", "LPs should plan accordingly", to...
Despite these mixed reactions to JIT attacks—and there's likely no singular 'right' answer to this type of MEV—here's how we envision JIT developing:👇🧵
Image
1/ First, why is JIT an attack? Simple - the trade that ends up being sandwiched by JIT bots would never have been executed in the first place without the passive Uni v3 LPs being there first, providing a valid trade route. Without initial LPs, the trade is never even routed. Image
2/ The very definition of an attack is to take an aggressive action against another. JIT bots view the mempool to take profit from pre-existing LPs. As such, LPing on Uniswap v3 is now an adversarial environment; to describe JIT as anything other than an attack would be incorrect Image
3/ Not only that, JIT bots are getting more efficient, improving their profit ratio over time. They are learning how to do this better and better: dune.xyz/embeds/233623/…
4/ How can non-mempool-aware LPs fight back? Does @VisorFinance help? Visor is hardly an active LP, updating its WETH-USDC tick once in the last 2 weeks. @VisorFinance also has no strategies that are mempool-aware. As such, LPs on Visor will still be vulnerable to JIT attacks. Image
5/ L2s will only make JIT attacks more prevalent. The only barrier to JIT attacks is gas cost. If L2's reduce gas cost even 90%, L2's will allow the present JIT MEV bot profit ratio to explode to over 100x as more JIT opportunities become available dune.xyz/embeds/233623/…
6/ Another interesting solution are private mempools (@EdenNetwork, @bertcmiller). If a trade that is JIT'able is never publicly transmitted, it cannot be attacked. But this goes against a core tenet of Ethereum, decentralization, as private mempools introduce centralized actors Image
7/ Perhaps @chainlink's Fair Sequencer can help prevent JIT Liquidity Sandwiching? However, this solution still seems far off. Maybe in a few years.
blog.chain.link/chainlink-fair…
@ChainLinkGod
8/ What happens when non-mempool-aware LPs begin to withdraw their liquidity on L2 Uniswap v3 due to rampant JIT attacks and resultant impermanent losses? One envisions a scenario where @Uniswap Team/VCs must subsidize the base level liquidity themselves to provide valid routing Image
@Uniswap 9/ That scenario would be quite disappointing, considering that @Uniswap v2 and DeFi has so far freed the masses from the sophisticated actors of TradeFi. However, JIT attacks clearly only benefit those with institutional advantage, like HFT firms and exclusive trading outfits Image
@Uniswap 10/ Despite their age, @Bancor, @Curve and Uniswap v2 style AMMs do not suffer from JIT Liquidity attacks. Does this mean L2 @Uniswap v3 is doomed for failure? Probably not. But JIT presents a problem that can be solved in the future, and we are excited to see solutions presented

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Chainsight Analytica

Chainsight Analytica Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @ChainsightA

9 Nov
1/ @Uniswap v3 introduces a new form of MEV attack — Just-in-Time Liquidity (JIT), that allows LPs to add and remove concentrated liquidity positions atomically in one block. Sophisticated actors are running JIT bots to sandwich trades, to the detriment of pre-existing LPs 👇🧵
2/ Using @DuneAnalytics, we find the @Uniswap positions that are added and removed in the same block for the same LP. From this, we calculate the revenue from the fees of the sandwiched trade, and subtract the gas costs required to perform the JIT attack:dune.xyz/embeds/233623/…
3/ Only 2 MEV #flashbots are presently capable of JIT attacks. Over >$1M USD in profits have been gathered by JIT bots, to the detriment of frontrun non-sophisticated @uniswap v3 LPs. @bertcmiller @phildaian dune.xyz/embeds/233623/…
Read 5 tweets
13 Mar
1/ Impermanent Loss doesn't have to be this mythical phenomenon, such that it may only be explained clearly in a universe where Unicorns might live. No, today we pull back the curtain and present a tool to visualize and analyze impermanent loss by asset & investment time horizon.
2/ First, a quick primer on Impermanent Loss - it occurs when the price of either asset changes after you've initially supplied liquidity (as you hope it does, since price changes are how a liquidity provider actually earns fees). Or, to take it straight from the Unicorn's mouth:
3/ As seen from the above Uniswap documentation, a 5x price change results in a 25.5% loss on your initial investment. But you aren't holding your favorite alt-coin for a mere 5x price appreciation, right, anon? Let's consider if you were supplying LINK/ETH liquidity last year:
Read 11 tweets
20 Feb
1/ Bancor Network's unprecedented volume share growth cannot be understated, and has been explored very little in a quantitative sense so far. We don't do ~ALphA LeAKs~, but keep scrolling for an update on the thread below to understand why BNT is still massively undervalued.
2/ Previously, we explored the difference between the 1inch referred volume to various DEX's on LINK, and saw how there was a massive gap between Bancor's expected (31%) vs. actual (8%) volume share. We surmised massive volume share growth was imminent.
duneanalytics.com/embeds/17349/3…
3/ Well, things have changed A LOT in a month. Now, Bancor Network is capturing A MAJORITY (55%!!) of all LINK trades through 1inch. That's 2x more than a month ago.
duneanalytics.com/embeds/20567/4…
But here's what's even more surprising and incredible...
Read 10 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(