@bertcmiller ⚡️🤖 Profile picture
May 12, 2021 13 tweets 5 min read Read on X
Even @VitalikButerin can't escape the monsters of the dark forest

Twitter wasn't the only party watching Vitalik's wallet. As always bots were ready to extract what value they could from his pending transactions.

Brief recap of those bots and what Vitalik did
Earlier today Vitalik sold his Shibu on Uniswap, and @FrankResearcher documents that adventure well

Normally when you swap on Uniswap the transaction is publicly relayed through nodes until it reaches miners. Due to this anyone who wants to can see the transaction before it is mined.
Bots watch for these transactions before they are mined and try to extract money from them.

This is how "sandwich bots" find their victims.
Here's what a sandwiched transaction looks like:

🥪 gets ahead of it, buying up a token to raise the price for the victim
Victim executes their swap, now getting less tokens but raising the price more
🥪 sells their tokens at the elevated price, pocketing a profit
Alternatively in some cases it makes sense for bots to land right behind a pending transaction and arbitrage away any profit made from potential distortions.

Ethermine's backrunning bot landed an impressive 3 arbs this way, including behind Vitalik's tx

Vitalik had 4 transactions fail at an eye watering ~1000 gwei gas price and was probably mindful of the aforementioned sandwich bots that could making be making his transactions fail.

So what did he do about it?
Recall that bots watch for pending transactions while they are in flight to miners. In order to sandwich a trade it needs to be made public.

So what if transactions were sent directly to miners instead of through full nodes where anyone could see them?
That is the basic premise behind new products like Flashbots, Taichi, MistX, or ArcherSwap: provide a direct line to miners so users can't be frontrun.
Vitalik used ArcherSwap to sell some of his Shibu earlier, and his transaction then succeeded where they had previously failed.

Read more about ArcherSwap in @calebsheridan's tweets below

etherscan.io/tx/0x11730fc49…

ArcherSwap is built using a fork of MEV-Geth and MEV-Relay - two codebases from Flashbots Research.

ArcherSwap routes trades to miners on the Archer Network, which in this case was mined 2miners.
etherscan.io/block/12421138
At Flashbots we're super excited by innovation like this that provides better experiences (e.g. frontrunning protection and creative use cases) and outcomes (better prices) for users.

To get involved check out our Github and Discord here:
github.com/flashbots/pm
Lastly, as @mevalphaleak points out, Vitalik got backrun and not 🥪ed because of how 🥪 ing works.

Since Vitalik was selling Shibu a 🥪 bot would have needed to be holding a ton of Shibu to 🥪 him. As a result, only backrunning was possible.

• • •

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

Keep Current with @bertcmiller ⚡️🤖

@bertcmiller ⚡️🤖 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 @bertcmiller

Dec 6, 2023
A brief thread on a novel MEV searching strategy, where we chase the trail of a mysterious bot backrunning private flow and reveal how they do it.
@blairmarshall pointed out a bot that appears to have private access to user orderflow that was landing bottom-of-the-block blocks on the Flashbots builder. That didn't make sense to me. We don't run backrunning bots! So we investigated.
Here is an example.

In block 18728532 a user makes a trade at the top of the block. They sell about 3 ETH worth of Truebit and it seems using a private mempool too.

etherscan.io/txs?block=1872…

Image
Image
Read 13 tweets
May 10, 2023
jaredfromsubway.eth's alpha and how to stop him
jaredfromsubway.eth is a prolific sandwich bot who went viral a few weeks back

They famously were sandwiching a TON of $PEPE traders and are frequently one of the top consumers of gas on the network

Why are they dominating sandwiches? What's their edge?

Keep scrolling, anon.
FIRST, most MEV bots go from ETH -> memecoin -> ETH, atomically making profit and holding only ETH

Jared holds memecoins and will sandwich memecoin -> ETH trades. There is very little competition for this.

Let's look at an example.
Read 13 tweets
May 2, 2023
Introducing simple-blind-arbitrage: an open source bot that blindly but atomically backruns private transactions from MEV-Share Matchmakers.

github.com/flashbots/simp…
simple-blind-arbitrage works by calculating and executing the optimal arbitrage on-chain.

It only requires the pools to attempt to arb as inputs, and does the rest in a smart contract. Image
How does it know which pools to try to arb? By listening to the Flashbots MEV-Share Matchmaker.

The Matchmaker keeps most tx details private to prevent frontrunning, but it shares the pools users are trading on.

Watch it from your browser here: mev-share.flashbots.net Image
Read 9 tweets
Mar 12, 2023
MEV-Boost payments were at an alltime high yesterday, totaling 7691 ETH (!) which is nearly double the previous ATH of 3928 ETH during the FTX fiasco this fall.

A few statistics on MEV on Ethereum yesterday in this thread

(h/t @nero_eth for the data)
You can't compare stats these 1:1, but the ATH for daily miner profit from mev-geth was 6397 ETH in June 2021. That's the *profit* of running mev-geth vs a vanilla mempool mining client.

A similar metric here would be the difference in payment for validators from running mev-boost or not. There's not a great up to date estimate of this out there I think

You could derive it by looking at the value of the mempool builder we submit (0xa1defa) and the winning block
Read 13 tweets
Mar 11, 2023
Brutal & unfortunate. A bad aggregator led to a user getting rekt.

A reason that a competitive MEV market & orderflow auctions are deeply important is that cases like this could potentially be entirely mitigated. The user could be paid back the arb that their wreckage left.
The user's $2m ended up in a Uni v2 pool, which an MEV bot was quick to snatch up for basically nothing of course. They paid a premium to a miner for this $2m but it really wasn't anything (~20 ETH).

The MEV market was strangely uncompetitive in this case. 20 ETH paid to the builder for capturing $2m is an insanely good trade and you'd expect competition to push that 20 ETH much much closer to the value of $2m.
Read 7 tweets
Feb 15, 2023
Introducing MEV-Share: programmably private orderflow that empowers users, redistributes MEV, and takes a step towards decentralized block building

MEV-Share is where transactions and bundles find their perfect match
collective.flashbots.net/t/mev-share-pr…
MEV-Share builds on MEV-Boost by further unbundling the transaction supply chain.

Whereas MEV-Boost enabled collaboration between validators and builders, MEV-Share does the same for searchers and users - empowering users to be paid for their transactions.
With privacy users can bargain for the MEV they create without permissioning searchers. But, programmable privacy allows users to selectively share information to enable optimization and collaboration.
Read 11 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

Don't want to be a Premium member but still want to support us?

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

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(