0x1c00

Posted on May 26, 2022Read on Mirror.xyz

Gas Price Impact on Uniswap

Every transaction on Ethereum needs to pay for gas. In the last year as demand for block space has ballooned, so too has the gas price. This has put pressure on consumers to decide whether or not to transact given the added cost.

In this analysis, we take a look at some of the broad impact gas has on Uniswap activity today as well as look back at a recent example of trader behavior when gas spikes.

Sections:

  • Gas’ impact today
  • Case Study: BAYC Otherside NFT Launch (May 1, 2022)

Gas’ Impact Today

Behavior by Gas Fees

The average swap volume was flat between $13-14k for the bottom for quintiles and then jumped over 2x to $31k for the top quintile. This suggests that small fluctuations in gas do not lead to the exclusion of smaller swaps until fees reach a higher threshold.

https://dune.com/embeds/816003/1436778/aa0019aa-68cc-4c48-8cb6-8c49cce8d994?display=iframe

Median gas fees as a percentage of swap volume are roughly 1-2% across gas fee quintiles. The 75th-percentile however sees much more of a spike, going from 2.5% to 9%.

https://dune.com/embeds/816003/1438486/5e7706c0-edec-495b-a9d3-c757ca851e3b?display=iframe

Gas Fees by Time

We looked at the impact of gas fees by day of week, hour of day, and minute of hour to see how wallets might shift their behavior to account changes in cost. We didn’t find any interesting insights when looking at minutes of the hour so we focused on the two other timeframes.

Gas fees spiked on Thursday and week days more generally, which coincided with the days with the highest share of dollar volume swapped. Weekend dollar volume share and gas fees were lower while the number of swaps remained roughly the same. This pattern suggests that large, potentially institutional, wallets are more active during the week, while the weekend consists of more small dollar value retail swaps. Volume per swap peaked at $30k on Thursday, but dropped to as low as $16k on Saturday. (see dashboard for details)

https://dune.com/embeds/794635/1435373/ec9b7020-ca28-46dc-be37-0b2d523e60b0?display=iframe

When looking at the data per hour, we see a similar trend in that dollar volume and fees appear to be positively correlated while swap volume is more consistent across time. Volume per swap peaked at $33k at hour 13, while unique traders swapped at hour 21 at 29k.

https://dune.com/embeds/816259/1435560/61d71ac8-cb25-4a65-bb7e-7b71df1d00f7?display=iframe

Case Study: BAYC NFT Launch (May 1, 22)

At 1 UTC on May 1, 2022 gas spiked to over 7,000 gwei with a max of 79k gwei, one of the largest spike of all time. To analyze this time event we looked at 24 hours of data from 12 UTC 4/30 to 12 UTC 5/1.

Volume Over Time

We saw swaps on Uniswap grind to a halt from 100+ swaps per minute down to three to four as most all traders were priced out. We saw swaps rebound as soon as gas prices subsided although they remained well below pre-spike levels.

Two potential hypotheses:

  1. Traders were scared away by the high prices and fear that they might spike again.
  2. Traders were trying to swap in and out of APE coin ahead of the launch and post launch this artificial demand dried up (less likely as the share of swaps in and out of APE continued to be some of the top pairs).

https://dune.com/embeds/823003/1443092/7a093c53-cf82-4a8b-a240-f3f4b73ed954?display=iframe

When analyzing the same temporal gas price data but with quartile swap values overlaid we see some choppy results. In this period we see some massive spikes, with the 75-percentile reaching up over $400k in some minutes. This trend wasn’t consistent, however, with some minutes having a 75-pct of less than $30k. Part of the noise in this is that there were very few swaps so these percentiles were being defined by only a couple data points.

https://dune.com/embeds/823003/1443501/081b9424-0fc2-48af-8074-09784306af58?display=iframe

Top Pairs

Swapping in and out of APE coin were some of the most popular trading pairs around this event. Surprisingly, even at the height of the gas spike a quarter of swaps were coming from other pairs. As further research, I’d like to better understand what the motivation was for traders to be aggressively trading in and out of APE around this NFT mint.

https://dune.com/embeds/835520/1461166/a213e4c0-f936-41b1-ae7d-fb0ebe1bd82b?display=iframe

Swapper Demographics

We broke addresses down into quintiles by number of swaps through the observed period (1: <=2; 2: <= 8; 3: <= 24; 4: <= 100; 5 > 100). The results were rather surprising with first quartile “new” addresses increasing their share of traders to close to 50% in the first couple hours of the gas spike. Quartiles 2-5 all gave up share. Then the “power users” in the 5th quartile bounced back to account for close to 50% of traders once gas fees subsided.

https://dune.com/embeds/835849/1476697/d5367796-fbd8-4620-88be-ce75cdb57907?display=iframe

Uniswap vs other DEXs

Uniswaps dominance reached 92% at the height of the gas price spike, with Sushi making up the balance. Effectively the entire long tail of DEXs dried up as customers were being priced out.

https://dune.com/embeds/839735/1468102/004f776c-6ef7-4511-92bb-614fd3440373display=iframe

For the full dashboard: Uniswap Gas Dashboard

Uniswap