How to use flash loans to capitalize from an #arbitrage? Let's take a look at this transaction, where #MEV πŸ€– earned 1,180 $USDC.
etherscan.io/tx/0x38f9508ce…

#1
Let's start with the roles involved in the transaction:
β€’ From: an EOA account, 0xffFf14106945bCB267B34711c416AA3085B8865F.
β€’ To: MEV πŸ€–, 0xEdE2faFBa9e23418485f49f052D0e1d332853E0F.
β€’ 0x1ce9: an EOA account, 0x1ce943e573041463202090cf662490c95585a046.

#2
And protocols:
β€’ @dYdX Solo Margin: a decentralized trading platform.
β€’ 1inch/1inch V4 Router: DeFi exchange aggregator.
β€’ Uniswap V3: a DEX/AMM.
β€’ MakerDAO PSM/DssPsm: Maker's Peg Stability Module.
β€’ Curve Pool: an exchange liquidity pool on Ethereum.

#3
Then, let's see how the #MEV πŸ€– made 1,180 $USDC from the following transaction actions:

1) First, the #MEV πŸ€– 0xEdE2 ("to" in the figure) borrowed 1.5M $USDC from dYdX (Step "1" in the figure)

#4
2) Then, the #MEV πŸ€– 0xEdE2 sent the borrowed 1.5M $USDC to 1inch (Step 2), and swapped the πŸ’° to 1.5M $DAI through the MakerDAO PSM (Step 3,4,5).
3) Subsequently, the #MEV πŸ€– 0xEdE2 sent 1.5M $DAI again to 1inch (Step 6), which helped carry out two swaps.

#5
a. 450,000 $DAI.
With the help of 1inch, the #MEV πŸ€– swapped 450,000 $DAI for 449,826 $USDT in Curve Pool (Step 7,8). Then the 449,826 $USDT were swapped for 18.97 $WBTC with 0x1ce9 (Step 9,10), which were soon used to buy 451,242 $USDC in Uniswap V3 (Step 11,12).

#6
b. 1,050,000 $DAI.
The #MEV πŸ€– swapped 1,050,000 $DAI to 1,050,000 $USDC through MakerDAO (Step 13,14,15).

#7
4) The total 1,501,242 $USDC were sent back to the #MEV πŸ€– through 1inch V4 Router (Step 16,17).
5) The #MEV πŸ€– repaid the 1.5M $USDC flash loan to dYdX (Step 18).
6) The #MEV πŸ€– earned 1,180 $USDC in total (Step 19), with paying 0.4883 $ETH to the miner πŸ”¨ (Step 0,20).

#8
I hope you've found this thread helpful.

Follow me @Eigenphi for more.

Like/Retweet the first tweet below if you can:

#9

β€’ β€’ β€’

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

Keep Current with EigenPhi HQ: Wisdom of DeFi (πŸ”­, πŸŽ™)

EigenPhi HQ: Wisdom of DeFi (πŸ”­, πŸŽ™) 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 @Eigenphi

Aug 18
1/11 Token front-running was common at Coinbase crypto exchange, and Hasu's deleted tweet suggested MakerDao suffered from EMO governance.DeFi Daily Digest 2022-08-18: More Front-Running on Coinbase, and MakerDao's $400M Bank Run.
eigenphi.substack.com/p/defi-daily-d…
2/11 Security

1️⃣ A New Study found suspicious trading like insider trading or front-running around 10% to 25% of new crypto listings coindesk.com/business/2022/….
3/11 Market

1️⃣ Coingecko has released a new β€˜Tokenomics’ tab that will allow users to quickly see a protocol’s tokenomics .
Here is the tracker docs.google.com/spreadsheets/d….
Read 11 tweets
Aug 18
1/10 Yesterday must have been an awful day for rich token holders, as the top 3 victims of the day are all Token Millionaires. ImageImageImageImage
2/10 The Token Millionaire with $10M in holdings has suffered heavy loss in the last 7 days. It was squeezed for $399,46 in 16 πŸ₯ͺs while losing $18,789 in yesterday's πŸ₯ͺ.
eigenphi.io/ethereum/sandw… Image
3/10 This πŸ₯ͺ was also the top tx of the day, bringing the 😈 over $5,632 in profits.
eigenphi.io/ethereum/tx/0x… Image
Read 10 tweets
Aug 18
1/6 Today let's work on a classic #arbitrage that @_bout3fiddy_ contributed to our #AwesomeTx bounty.

In this tx, the πŸ•΅οΈβ€β™‚οΈ earned over $252,578.9 while paying over 720 $ETH as miner tips, using 4 tokens ($WETH, $USDT, $USDC, $DAI) in 3 venues.

eigenphi.io/ethereum/tx/0x…
2/6 Here's how the searcherπŸ•΅οΈβ€β™‚οΈ made this:
1) The πŸ•΅οΈβ€β™‚οΈ sent 4,700 $WETH from Balancer Vault to a Curve LP 0xd51a (Step 0,1 in the figure) and swapped the money for 6,075,210 $USDT (Step 2). Image
3/6
2) After receiving the $USDT, the πŸ•΅οΈβ€β™‚οΈ swapped only 6,074,603 $USDT for $USDC in another Curve LP 0xbebc (3,4), remaining 607 $USDT.

3) Then, 6,065,352 from 6,065,959 $USDC was swapped to 5,606 $WETH through Uniwap V2 (5,6), during which the searcher reserved 607 $USDC. Image
Read 6 tweets
Aug 17
1/9 The top πŸ₯ͺ became breakfast in the morning, marking a productive start to the day.

eigenphi.io/ethereum/tx/0x… Image
2/9 The 😒 of this πŸ₯ͺ, also the biggest victim of the day, was a Tornado Cash Withdrawer.
eigenphi.io/ethereum/sandw…
It lost $11,840 in the attack when swapping 895.95 $WETH for $renBTC.
However, the #MEV πŸ€– only earned $4,259, since it paid $7,580 to the DEX and miners πŸ”¨. Image
3/9 A consequence of the πŸ₯ͺ was the rise of $renBTC, which became the hottest token yesterday.
Top LP: a $WETH/$renBTC pool.
eigenphi.io/ethereum/token… Image
Read 9 tweets
Aug 17
MEV market is constantly changing. The arb window is usually gone in minutes, even secs. Receiving the latest arb tx can be crucial for searchers. So is big whales' trading creating arb alpha. Don't want to miss these? Follow our 🚨 :
Here are some of the large amounts of deposits and borrows.
Of course, it always gives you the latest πŸ₯ͺ ⚠️ ❗
Read 4 tweets
Aug 16
Who was the biggest victim of Sandwich #MEV yesterday? It's a Token Millionaire who's been receiving more than $10M $USDT. zapper.fi/account/0xbbc5…

#1
The whale swapped more than $6.1M $USDT for $WETH and became the 😒 of πŸ₯ͺ , losing $21,357.53. eigenphi.io/ethereum/tx/0x…

#2
The πŸ‘Ώ used ( $WETH , $aWETH , $variableDebtUSDC , $USDC , $aUSDC , $USDT ) for the attack. We have dissected this MO in this post: How to Use AAVE Loan to Launch a Sandwich MEV Attack?
eigenphi.substack.com/p/aave-loan-sa…

#3
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

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 on Twitter!

:(