𝓐dvent of 𝓒rypto 𝓓ata, DAY 0️⃣2⃣
Happy to release the package behind the ever popular
@Uniswap
v3 liquidity distribution gifs!
Written in polars, anyone can maintain multichain Uniswap v3 data, calculate arbitrary swaps at arbitrary times, and generate state variables from v3
Who here wants to see concentrated liquidity in action? 🙋♀️Check out this gif of WETH vs. USDC over time.
🎨 Brought to you by Researcher
@AustinAdams10
Who here wants to see concentrated liquidity in action? 🙋♀️Check out this gif of WETH vs. USDC over time.
🎨 Brought to you by Researcher
@AustinAdams10
So excited to have this piece out! So many people have asked me what’s the design space of v4 and this perfectly encapsulates it
Programability and composability is the super power of crypto, and Uniswap v4 is a great show case of it
And don't forget the rest: Matcha Standard mode has zero fees.
For our Matcha Auto product, we provide a ton of value to users for the 0.15% fee we charge, such as:
🛡 MEV protection
⛽️ Gasless swaps
✅ Superior trade execution
And we don't hide the fee beneath the fold.
Wby?
Uniswap v3 users have spent over $20m on events, adding significant overhead when interacting with already expensive onchain primitives.
I personally don’t think it’s feasible to continue asking users to subsidize us analyzooooors. Shadow fixes this.
“instead of doing X, you should wait for the EVM to implement (non-trivial change) instead!”
this thinking delayed v4 by probably 2 years. don’t make the same choice
lending markets should take into account the current liquidity onchain (esp for defi native assets!)
@saraareynolds
and i wrote up a contract to calculate tokens within arbitrary percentages around the current price in v3 pools to help solve this!
This thread makes some problematic assertions.
First, 1inch is not a DEX - they are a front-end and aggregator protocol. A plurality (40-45%) of their aggregator volume is settled through Uniswap Protocol. By volume, the Uniswap Protocol is the largest DEX.
Let's debunk the biggest myth in DeFi.
@Uniswap
is not the largest DEX.
Data shows that
@1inch
in fact should get the title!
In most DeFi rankings, Uniswap ranks 1st among DeXes by raw volume. See for instance the famous
@DuneAnalytics
dex.trades table.
Yet, the devil is in…
If you are interested in DeFi research and working at
@Uniswap
, we just posted a new post for PhD fellowship. If you have questions, feel free to reach out!
v3 math is no joke—but we’re here to make it easier 😅
Check out part two of our v3 math to start:
💦 Calculating LP holdings
💸 Calculating uncollected fees in a position
👀 Working with virtual liquidity
Want to see concentrated liquidity in action? Researcher
@AustinAdams10
dropped new data art 🧑🎨
Check out this gif of ETH/USDC pool liquidity vs. ETH price over time.
icymi,
@matchaxyz
still charges no fee,
better UI,
better prices aggregated across more AMMs,
more private liquidity in its RFQ with more Market Makers onboarded,
supports gasless.
something that surprises tradfi researchers is that I use the same data as everyone else to figure out what’s going on inside the protocol
they can’t be convinced that it’s possible
On-chain foreign exchange (FX) is a new model of global value exchange that offers a faster, cheaper, and more efficient alternative for cross-border payments.
Our recent research paper with
@circle
has it all 🧵
gm
@Uniswap
is hiring a PhD research fellow to work with the research and protocols team over the summer.
if you want to work at the forefront of defi research and design, pls apply! Let me know if you have any questions.
5/
@AustinAdams10
📢
Austin is a researcher working at Uniswap Labs, focusing on economic incentives for Uniswap. He's a real crypto data expert and we're sure will give an excellent talk!
Topic:
"Data science on Uniswap V3"
Is this 5% spread for a long-tailed v3 swap? no, it’s for the most liquid market in the entire world, euro/usd
Maybe if our cash was programmable we could do something better 🤔
your take linked in your own thread was that eip-1153 was made for kyc. This is still wrong and still a misunderstanding of 1153. 1153 =\= hooks.
the linked hook code was made by a community dev and listed on a community website. why are we acting like this is enshrined in v4?
JIT is less than 1% of v3 mainnet volume, but there has been 0 JITs on Arbitrum. Making this thread’s conclusions all false. Can this false narrative die?
Do we have to do another blog post
@xin__wan
?
On Uniswap V3, you can easily provide liquidity at a specific price range to earn more fees.
However, this enables Just-In-Time (JIT) attacks to be executed by MEV bots, causing most of your potential fee profits to be stolen away.
I’ll be at the Defi Cafe on Thursday from 2-4 to talk to builders/researchers about hooks!
Should be a great pre-event to the hook-a-thon run by
@ArrakisFinance
and
@hilmarxo
!
Join the UF and
@StarkWareLtd
this week at Cafe el Sur, nearby the EthCC venue, for coffee and a series of lightning talks focused on DeFi Research.
DeFi Cafe runs from 11-5 today, tomorrow, and Thursday.
Got around to fleshing out the
@Uniswap
account on
@DuneAnalytics
. Now we just need to get our stars up. What are some queries people are interested in that we might already have?
1/ THIS IS NOT A DRILL 🔥🔥🔥
The Uniswap mobile wallet is out of Apple jail and now live in most countries 🎉✨
Download our self-custody, open-sourced app today! 👇
According to
@glassnode
report published on 31st July, most trading volume on
@Uniswap
(>70%) is from bots, with Sandwich bots being the simply majority
Order flow toxicity is preying on LPs seriously… what keeps them there but for under-table deals?
Permit2 and the extremely evil L2 problem 👿
(n.b. I don't think
@berachain
is evil.)
Earlier today I was transacting around on the berachain testnet and not paying much attention to what I was signing. This is a pretty common occurrence for folks in the Ethereum ecosystem.
how did lyra finance on OP mainnet get the same address as DAI on Base/BSC?
seems cursed af - especially since they (probably?) didnt deploy w/ the same pk
Uniswap v4 truncated twap oracles have enshrined mathematical resistances
trust your assets to code that has economic incentives, math, and onchain reliability behind it
@matchaxyz
the settlement fee is the output amount * 15 bps, which is the fee.
this is hidden behind the fold and not included in the quote. you have to go over a tool tip to see it
why can’t you list your token single sided out of range on v3 to market make it. you don’t need the other token and you gain liquidity in the other token as it sells.
my cat has learned how to open doors, so in the middle of the night, he just starts opening them just to show me who is boss
he may be the man of the house now
Link:
Feel free to message me if you have any ideas, paper ideas that can use this code, questions, find bugs, or want to help work on the codebase!
Thanks for looking!
Whenever I look at new protocols, I always find it difficult to figure out how to get out the core data that I want from them.
I figured that many people felt the same way about
@Uniswap
, and spent some time along with
@saraareynolds
and
@eich4all
to make a math primer!
1/ We get a lot of questions about Uniswap v3 from:
💻 Devs building on Uniswap v3
📈 Analysts drawing insights
🔎 Researchers studying market activity
Today, we’re outlining some of the most common technical questions we see, digging into the math, & running example code 👇
don’t think Arbitrum is down atm - the public rpcs just can’t keep up with how much is being posted.
seems like a large plurality of the last few l1 blocks have been Arbitrum posting sequencer batches
onchain lping can be profitable - if you disagree, go look at the revised LVR paper for v2 eth/usdc
im less convinced that v3 lping is strictly unprofitable, but we should strive to create better mechanisms for onchain trading in any case
Holy shit. 79% of Uniswap volume is now sandwich attack trades. WTF!
THIS is the product you shill on twitter? That you say is INFINITE MONEY PRINTER? Is THIS JOKE? Maybe I was being TOO KIND by saying that you as a trader get BUTT FUCKED by making a trade. Absolutely DISGUSTING
if you want to escape from the current ~~drama~~, you could read our new paper on intra-pool LP competitiveness!
if you have any questions feel free to ask!
1/ Introducing FLAIR —a new metric to measure intra-pool LP competitiveness in AMMs ✨
LPs strive to benchmark their performance accurately. This research enhances the reliability of such calculations.
The difference from the Arbitrum Uniswap info page to the
@DuneAnalytics
the author noted is the inclusion of uncollected fees.
The info page removes them (because they aren't part of the liquidity distribution) and only relying on transfer events will include uncollected fees.
I really admire the innovation that
@Uniswap
brought with concentrated liquidity and v3 but their tvl info page is so misleading, i hate to be a shill but thankfully we have
@DuneAnalytics
and llama sama
@0xngmi
and friends
@DefiLlama
to help with this, a short thread
🧵
0/4
What’s changed in the market landscape over 2023?
Before the deep dive, I'd like to segment the first half of 2023 into 3 periods:
- The recovery (Jan - Feb)
- Post Blur airdrop (Feb - Apr)
- Post Blend launch (May - Now)
Let’s talk about DEX aggregators vs. DEX protocols. While an important component of market efficiency in DeFI, comparing an aggregator volume vs. protocol volume is not an accurate comparison.