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…
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:👇🧵
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.
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
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.
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
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
@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
@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
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/…
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:
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...