<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>EigenPhi</title>
        <link>https://paragraph.com/@eigenphi</link>
        <description>By discovering the wisdom of DeFi, EigenPhi is here to unveil structures,  uncover behaviours, and unmask associations.</description>
        <lastBuildDate>Mon, 06 Apr 2026 09:07:38 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>EigenPhi</title>
            <url>https://storage.googleapis.com/papyrus_images/afc803d0388da057f0cba7841df88fc460f5ce0c7f2015187afc65c4e8fb9309.png</url>
            <link>https://paragraph.com/@eigenphi</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[It’s Time to Inspect the Sandwich Spillover on BSC Chain, the Paradise for Frontrunners.]]></title>
            <link>https://paragraph.com/@eigenphi/it-s-time-to-inspect-the-sandwich-spillover-on-bsc-chain-the-paradise-for-frontrunners</link>
            <guid>Oa8Q1Fo9yG41AjM9yxHL</guid>
            <pubDate>Sun, 29 Jan 2023 07:01:35 GMT</pubDate>
            <description><![CDATA[Another unicorn of web3 has shown itself this morning. The Block reported that Flashbots seeks up to $50 million at a billion-dollar valuation. It is definitely well-deserved due to its contribution to Ethereum. The existence and popularity of Flashbots Auction bring fierce competition to Sandwich searchers, thus crushing the profit of Sandwich chefs for a long time. Our data shows that, in the past 30 days, 82.5K sandwich MEVs created $845.5K profit out of a cost of $4.7M. The overall ROI is...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/31ed1a2bd5ae9525f09f8bff9cd3567692f54d9d9bd7bfa659b4b84d6a24c9c9.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Another unicorn of web3 has shown itself this morning. The Block <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.theblock.co/post/203637/flashbots-fundraise-billion-dollar-valuation">reported </a>that Flashbots seeks up to $50 million at a billion-dollar valuation. It is definitely well-deserved due to its contribution to Ethereum. The existence and popularity of Flashbots Auction bring fierce competition to Sandwich searchers, thus crushing the profit of Sandwich chefs for a long time. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich">Our data shows</a> that, in the past 30 days, 82.5K sandwich MEVs created $845.5K profit out of a cost of $4.7M. The overall ROI is 18.1%.</p><p>As the most notorious MEV, Sandwich has always been known for its shady approaches. Being one of the best MEV data platforms in the industry, EigenPhi has provided an exclusive <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich">Sandwich module for Ethereum</a>. The module displays real-time Sandwich attacks, as well as summary data, happening on Ethereum.</p><p>Although Flashbots has lessened the awful effect of Sandwich MEVs, the caused spillover has extended to the BSC chain. More and more Sandwich searchers moved to other chains, BSC Chain especially, on which none like Flashbots exists. Yet how bad was the situation? Nobody knew.</p><p>“If you can’t measure it, you can’t manage it.” Peter Drucker once said.</p><p><strong>Today, we announce the </strong><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/bsc/sandwich"><strong>first BSC Sandwich module of DeFi</strong></a><strong>.</strong></p><p>Similar to the one under ETH, the newly released BSC sandwich module includes <strong>Overview,</strong> <strong>Top 10 Exploited Contracts, Profit Distribution, Latest Attack</strong>,** <strong>and</strong> transaction, attacker, and** **victim leaderboards **over specific time periods.</p><p>With these data, we can answer the question: how dire the circumstance is on BSC?</p><p>Here is the 30-day data:</p><ul><li><p>Sandwich Count: 29,055</p></li><li><p>Total profit for Sandwich attackers: $319,011.58</p></li><li><p>Total cost: $44,271.02</p></li><li><p>Attackers: 423</p></li><li><p>Victims: 18135</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2768cac3c48d928e18a9bf494fc797f682c644e08404d1e874e5eb5f5951efca.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Although the overall profit on BSC is about 37.8% of Ethereum, the cost is 100 times smaller, making the overall ROI 725%. And the attacker count, 423, is 2.5 times the number on Ethereum.</p><p>Let’s go through the BSC Sandwich module and see what else we can find.</p><p><strong>Top 10 Exploited Contracts</strong> comes after the <strong>Summary</strong> section.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b8771639df731d4f1f53c4fb861580c640a02cb072211b845d5594e27cb9bfff.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The chart tells us that 91.6%, which is 25,168 sandwich MEVs, happened on PancakeSwap Router V2.</p><p>Then there is the <strong>Profit Distribution</strong> chart. The one below shows that, out of the 29,055 sandwiches, 14,466 have a profit between $1 to $10. The average is $3.5 in this range.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/9be759775bd89ba82df157e8ddce229ff6e3336708fe566894942a597add87ac.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Next, you can check out the latest Sandwiches happening on BSC.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/73c0b4213aa5a0029c9068abbb28aafb804a8ea12377f17301d1e768e706539e.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>And you can check out the leaderboards about sandwiches, attackers, and victims. The first two are ranked by profit, while the last is picked based on their losses.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ebaefb3e760e29ca05c027c289aa3358b649a73b0849b7ff2ac19fc1bb7a9382.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6a3ea3a7c3a6740ebb8d334e8f00c0f6fadf5a8cc5bdd3bb41a74cd39de70c93.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a33662c106b8a6df7bb54b6e2f957f0822bfd574066b2e09edf2a2430a61a41e.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Wanna find out more details about one specific attacker or victim? You can click their addresses to view the data. Our user guide will guide you through the details of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/sandwich/attacker-detail">attackers</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/sandwich/victim-detail">victims</a>.</p><p>Of course, you can examine how a sandwich actually works by clicking the hash of it.</p><p>The detail page consists of mainly two parts: <strong>Summary</strong> and <strong>Token Flow Chart</strong>. The <strong>Summary section displays the profit, cost, and revenue of this sandwich. The Token Flow Chart section gives you detailed token flows happening in the format of a balance table. It reveals how tokens are traded among trading venues, i.e., liquidity pools, in three parts: FrontRun, Victim, and BackRun</strong>. Remember that sometimes you can many transactions fall victim to prey.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/dbeb44c4d0f7343ff277f57976a5a22056042c934e3b34923ea27c07e4fccbcb.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>You can click the EigenTx button, marked below, to use the visualizer, which gives you a more intuitive graph about the process of the whole attack.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7d37c370ca8cf5ca414ed3744ecd5a741c1417ad06b3cc89c68d8c53b93100a8.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Here are the token flows of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/eigentx/0x25d6dcea4a9181bafbad7fd67f54d485799fae7cb3fdadff84b585e9c31dde6f,0xb4861533a408d3439453127390d72784c1b18444ad0a86fc0c54419e1c011f23,0x21e5520e789df73e684d66b7231578be835803bd71bfb32bac8b0b06c7915b08">the previous sandwich</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d65d382d8ff7f7aa3cca182e81d5ba116ac2456466abb9d9ab37580e2f42bb7a.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>That’s about it. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/bsc/sandwich">DeFi’s first BSC Sandwich MEV module</a> will show you many unexpected data that you would not be able to find anywhere else. Go check it out and tell us what you find!</p><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/channel/UCQa9hWUD2vIYZrI3KsqgBWQ">Youtube</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[The Arbitrageur Who Beats Everyone Else in an Hour]]></title>
            <link>https://paragraph.com/@eigenphi/the-arbitrageur-who-beats-everyone-else-in-an-hour</link>
            <guid>wPHvuLpjz5rbO9elPpT6</guid>
            <pubDate>Sun, 29 Jan 2023 06:56:06 GMT</pubDate>
            <description><![CDATA[AbstractAt block number 23545404 (Dec-02–2022 12:43:18 AM +UTC) on BSC, an attacker successfully packaged a transaction on-chain targeting the liquid staking protocol Ankr’s Deployer contract, in which the reward-bearing token aBNBc was suddenly minted at an amount of 10 trillion and transferred to the attacker’s address 0xf3a4. In subsequent transactions, the attackers minted another 50 trillion aBNBc and exchanged only a tiny percent of these printed tokens into blue-chip ones worth $5.656 ...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-abstract" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Abstract</h2><p>At block number 23545404 (Dec-02–2022 12:43:18 AM +UTC) on BSC, an attacker successfully packaged a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bscscan.com/tx/0xe367d05e7ff37eb6d0b7d763495f218740c979348d7a3b6d8e72d3b947c86e33">transaction</a> on-chain targeting the liquid staking protocol <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.ankr.com/">Ankr</a>’s <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bscscan.com/address/0x2ffc59d32a524611bb891cab759112a51f9e33c0">Deployer contract</a>, in which the reward-bearing token <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bscscan.com/token/0xE85aFCcDaFBE7F2B096f268e31ccE3da8dA2990A?a=0xf3a465C9fA6663fF50794C698F600Faa4b05c777">aBNBc</a> was suddenly minted at an amount of 10 trillion and transferred to the attacker’s address <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bscscan.com/address/0xf3a465C9fA6663fF50794C698F600Faa4b05c777">0xf3a4</a>.</p><p>In subsequent transactions, the attackers minted another 50 trillion aBNBc and exchanged only a tiny percent of these printed tokens into blue-chip ones worth <strong>$5.656 million</strong> via DEXes. Instead, the attacker transferred part of the proceeds to Ethereum via cross-chain bridges and mixed the remainder through Tornado Cash.</p><p>According to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/cz_binance/status/1598575867311132673?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1598575867311132673%7Ctwgr%5Ef27d053b3289bb0d4ad2d689858195b6c318a0a7%7Ctwcon%5Es1_&amp;ref_url=https%3A%2F%2Fwww.reuters.com%2Ftechnology%2Fbinance-ceo-says-paused-withdrawals-after-ankr-hack-2022-12-02%2F">CZ</a>, the theft of the private key of the Ankr Deployer contract may have caused the attack. Moreover, after the first attacker carried out the exploit, several other participants took the opportunity to profit from it. One of them took advantage of a defect in the Helio lending protocol’s evaluation of ankrBNB’s value and staked cheaply-purchased ankrBNB to the protocol. This staked ankrBNB allowed him to borrow excess HAY and exchange it for BNB and BUSD via DEXes, totaling <strong>$15.533 million</strong> (three times the attacker’s proceeds). Several DEXes were also affected by a cascading effect.</p><p>This article will show that the swift actions of the Helio arbitrageur and the followers demonstrate that searchers perform better than protocols in gathering information and detecting trading opportunities or risks. This event also sheds new light on liquidity. A significant increase in the issuance of a problem asset can be a precursor signal to the sale of the asset into the market and subsequent devaluation.</p><p>The arbitrageur was well prepared to take advantage of this delay. Conversely, the affected protocols were unaware of it. Helio’s failure to set up a separate oracle for aBNBc to track its market price indicates that the current DeFi protocol’s risk control system is careless and unresponsive. We hope to provide some insights to related parties by carefully reviewing the incident’s details.</p><h2 id="h-timeline" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Timeline</h2><p>The Ankr attacker, as the originator of this incident, naturally deserves attention. On the other hand, various KOLs have also retweeted the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/lookonchain/status/1598535936044044294">story</a> of the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bscscan.com/address/0x8d11f5b4d351396ce41813dce5a32962aa48e217">Helio arbitrageur</a>, who made 15.5M BUSD with only 10 BNB. Both roles use two new addresses during the event, with historical transaction counts of 78 and 96, respectively. It’s interesting to compare them by merging the timeline of both roles’ actions. The following table summarizes the timeline of crucial transaction steps for these two addresses.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Ten minutes after the Helio arbitrageur completed the 6th round of arbitrage, implicated protocols, and third-party tools started tweeting security alerts one after another, for example:</p><ul><li><p>2022/12/2 01:55, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/WombatExchange/status/1598496086234370048?s=20&amp;t=j4jKo-Z7pIB2MMYpbCzJGg">Wombat Exchange</a> paused the aBNBc pool</p></li><li><p>2022/12/2 02:13, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/PeckShieldAlert/status/1598500528295534592?s=20&amp;t=hCLGeXq4r95AhyAuH_aKXw">PeckShieldAlert</a> tweeted the incident</p></li><li><p>2022/12/2 02:24, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/ankr/status/1598503332477280256">Ankr</a> tweeted an announcement</p></li></ul><h2 id="h-cashing-out-a-tiny-percentage-of-fake-abnbc" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Cashing out a tiny percentage of fake aBNBc</h2><p>The table above shows that the Ankr attacker minted aBNBc in increments of 10 trillion every six times. However, he converted only 27,074 aBNBc into BNB and USDC, and the attacking address 0xf3a4 still holds over 60 tri llion aBNBc unused at the moment (with an amount of 7,777,777 incoming aBNBc from 0x0d86).</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The attacker converted 27,074 aBNBc to 4,050,000 USDC and 5,500 BNB via PancakeSwap, then 4,500 BNB to 1,293,086.99 USDC. They transferred all the USDC to Ethereum via three cross-chain bridges: Celer Network, deBridge, and Multichain, and mixed 900 BNB left in 0xf3a4 via Tornado Cash. The Ankr attacker’s total gain was about <strong>$5.656 million</strong>, with 1 BNB worth $292 at the time.</p><h2 id="h-six-rounds-of-arbitrage-with-high-roi" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Six rounds of arbitrage with high ROI</h2><p>As you can also see from the table above, the Helio arbitrageur activated this new address the day before the Ankr attack and conducted several arbitrage activities between BUSD, MATIC, and WBNB at PancakeSwap. However, just 40 minutes after the Ankr attacker’s first mint operation, this arbitrageur quickly reacted and started his first round of testing on his strategy involving the Helio platform.</p><p>In the beginning, several of the arbitrageur’s transactions reverted due to problems setting the borrowing amount. They waited until they had successfully tested the strategy to gradually increase the principal amount from 1 BNB to 50 BNB and 100 BNB.</p><p>Before the 6th round of arbitrage, the price of aBNBc in the DEX market had not completely collapsed, and the swap ratio was above 0.41 BNB per aBNBc. Note that the Ankr attacker converted the last aBNBc into a blue chip token at 01:39:11, when the swap ratio was around $113 or 0.39 BNB per aBNBc</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Just 2 minutes after the 5th round, the price of DEX plummeted to near zero. One reason is that many other participants followed the Ankr attacker’s action and cashed out more aBNBc.</p><p>While everyone else was putting aBNBc into the DEX’s liquidity pools to smash its price, the Helio arbitrageur took the opportunity to implement the 6th round of arbitrage. He obtained 183,884 aBNBc for only 10 BNB, at which point the exchange price dropped to 0.00005438 BNB per aBNBc, showing that the DEX’s liquidity pools had become severely imbalanced.</p><p>Helio’s valuation of aBNBc failed to keep up with the market. This price discrepancy allowed the arbitrageur to take advantage of the overvaluation of this collateral. They borrowed 16,444,740 HAY, which they swapped for about 15.5 million BUSD.</p><p>After six rounds of arbitrage, the arbitrageur invested a principal amount of 262 BNB and earned a net gain of <strong>15,504,986 BUSD</strong> and **97.4438 BNB **(not considering the cost of gas fees), equivalent to <strong>$15,533,440</strong>. The ROI of the 6th round is about 530,800%.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-other-interested-parties" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Other interested parties</h2><p>We also studied some other addresses involved in this incident, including implicated third-party protocols, follow-on attackers who mimicked the Ankr attacker’s minting behavior, and other addresses that profited considerably during this time.</p><p><strong>Implicated third-parties</strong></p><p>To identify the third-party protocols that also suffered losses in this event, we obtained all transactions that generated aBNBc-related transfer logs during the event, and further extracted all token transfer logs that occurred in these transactions.</p><p>In total, we obtained 345,199 token transfer logs. They contain 15,762 unique “from” addresses, 17,793 unique “to” addresses, and 601 unique tokens. We find the top 20 tokens with the highest frequency of interaction with the from address and to address to see which kinds of tokens are primarily involved in this event. aBNBc, BNB, USDT, BUSD, WBNB, USDC, and HAY are all included in the list.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>We convert the BNB and WBNB held by the addresses into dollar value based on the price of $292, and calculate the net value change of each address by the net amount change of BNB, WBNB, USDT, USDC, and DAI and omit other tokens’ value. We found the following three DEX pools suffered predominantly.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The Helio arbitrageur’s HAY sell off affected the HAY related trading pools of PancakeSwap and Wombat. They swapped out most of the BUSD, causing the HAY price to deviate heavily from $1.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-follow-on-attackers" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Follow-on attackers</h2><p>The following table lists the addresses that are suspected to have followed the attackers in this incident and profited in the same way. Proceeds are estimated at a price of $292 per BNB/WBNB.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-other-winners" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Other winners</h2><p>In addition, we found several addresses with only net inflows across tokens and ranked high in the total net inflow. One should note that since some of the winners transferred their final proceeds elsewhere, this method will miss such addresses.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-insights" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Insights</h2><p><strong>Security</strong></p><p>The theft of Ankr Deployer’s Private Key caused a security incident. But the security and robustness of the DeFi system cannot be based on the assumption that no one involved in the system can make a mistake. People make mistakes, programs have bugs, and these are all inherent characteristics of the system.</p><p><strong>Information monitoring bias</strong></p><p>The swift actions of the Helio arbitrageur and other followers demonstrate that searchers perform better than protocols in gathering information and detecting trading opportunities or risks.</p><p>He acted quickly after the attacker’s first aBNBc minting transaction and before the aBNBc market had collapsed entirely, with ample time to conduct two small-scale tests. A reasonable guess is that his monitoring system observed an anomaly in aBNBc’s total circulating amount and succeeded in alerting him to it.</p><p>What makes him even better is that he figured out the arbitrage path to pledge aBNBc to Helio and borrow HAY before the market crashed. Then he quickly captured the huge valuation difference between the Helio protocol and other DEXes on the token in question at the moment of the crash. The whole process took him about 1 hour.</p><p><strong>Oracle manipulation</strong></p><p>For the Helio lending platform itself, it would be unwise to evaluate a reward-bearing token on top of some ideal assumptions (e.g., the probability of aBNBc deviating from BNB is small). Therefore, the relevant protocols should always be alert that there is no absolute anchoring relationship between the values of different tokens.</p><p><strong>Protection against abnormal liquidity</strong></p><p>Many protocols do not react promptly when extreme events occur in the market and DeFi system. This lack of response resulted in the drain of the Helio lending platform and some DEX pools suffering severe losses.</p><p>During the event, there was a delay of hundreds to thousands of blocks between the occurrence of the giant aBNBc mint and the subsequent actions. If this window of time is seized, the risk contagion can be stopped early by closing the market to the risky asset, preventing it from being used as collateral, or adjusting the parameters of how someone can borrow it. As a result, the impact of a security event may be avoided or mitigated.</p><p>The current DEX or Lending protocol uses quasi-static parameter settings and is slow to adjust in response. This is why we again emphasize the importance of establishing a dynamic risk control system for DeFi with a feedback loop based on the liquidity state of the market.</p><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/channel/UCQa9hWUD2vIYZrI3KsqgBWQ">Youtube</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[10M Revenue Drain in 5 Months: MEV impact on Curve]]></title>
            <link>https://paragraph.com/@eigenphi/10m-revenue-drain-in-5-months-mev-impact-on-curve</link>
            <guid>DBl6N0w7EtEpLJa57uRZ</guid>
            <pubDate>Sun, 29 Jan 2023 06:37:05 GMT</pubDate>
            <description><![CDATA[Curve is a DEX liquidity pool built on Ethereum and launched in 2020. It is also known for StableSwap, a feature dedicated to creating an ecosystem that allows users to exchange stablecoins with other DEX protocols with lower fees and slippage. After about two years of development, Curve can currently support three categories of exchange:Stablecoins: Curve has more than 20 USD-pegged stable currency pools, such as 3pool, Lusd+3Crv, UST, etc.Stable pegged assets: For example, Curve supports ET...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Curve is a DEX liquidity pool built on Ethereum and launched in 2020. It is also known for StableSwap, a feature dedicated to creating an ecosystem that allows users to exchange stablecoins with other DEX protocols with lower fees and slippage.</p><p>After about two years of development, Curve can currently support three categories of exchange:</p><ul><li><p>Stablecoins: Curve has more than 20 USD-pegged stable currency pools, such as 3pool, Lusd+3Crv, UST, etc.</p></li><li><p>Stable pegged assets: For example, Curve supports ETH’s PoS and synthetic assets.</p></li><li><p>Non-stable pegged assets: After Curve V2, users can exchange BTC, ETH, and USDC in the Curve Tricrypto Pool.</p></li></ul><p>But what makes Curve stand out from other DEXs is its 3-token pool and unique price curve. Take Curve tri-pool as an example. It plays a significant role in reducing risk. Curve does not directly set up pools between premature or risk tokens and stablecoins. Instead, it relies on 3Crv as a medium token to isolate risks, bringing a strong risk buffer to stablecoins. Its unique price curve differs from the constant product formula curve, enabling its pools to suffer from less slippage in the stablecoin AMM markets.</p><p>When we talk about AMM markets, we inevitably talk about MEV activities. MEV (Maximal Extractable Value) has generated attractive wealth opportunities in the dark forest. The investigation into MEV bots is vital in improving the efficiency of price discovery in AMM markets. Curve has become an irreplaceable DeFi infrastructure, so we must explore the in-depth impact of MEV activities on Curve.</p><p>By providing the MEV impact overview on Curve, we hope this report could inspire stakeholders and researchers to shed light on these questions:</p><ol><li><p><strong>How far do MEV bots impact the Curve community and its users?</strong></p></li><li><p><strong>Who would be most likely to be involved in MEV activities?</strong></p></li><li><p><strong>How valuable could MEV data be to enhance the protocol design and impact trading decision-making?</strong></p></li></ol><p>This report will calibrate the MEV market and its impact by observing the extracted asset values. Unlike Uniswap V3 (referring to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/report/mev-impact-on-uniswap">the research report</a> we released earlier), the MEV type like JIT (just-in-time liquidation) hasn’t emerged in Curve. So we will focus on the two major types of MEV bot activity involving Curve liquidity pools:</p><ul><li><p>For arbitrage bots, we have filtered out all the transactions involving curve pools.</p></li><li><p>For sandwich bots, we will target the transactions where victims get sandwiched in Curve liquidity pools.</p></li></ul><p>The following analysis will start with abstract of key points we have discovered during the investigations of MEV behavior on Curve. Then present an overview of the MEV revenue, volume, frequency analysis, profit, etc. Finally we will dig deeper into each MEV type with some compelling and inspiring conclusions.</p><p>Thanks for reading Wisdom of DeFi by EigenPhi! Subscribe for free to receive new posts and support my work.</p><h2 id="h-abstract" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Abstract</h2><p>Two MEV types have been explored in Curve: <strong>arbitrage bots have generated more than $10M value involving Curve pools, and sandwich bots have extracted $0.98M revenue from victims that are trading in Curve pools.</strong> Arbitrage bots are more active in Curve compared with sandwich bots.</p><p>We have also investigated the volume flow for both MEV types. Volume is the key factor to influence the price slippage, and due to the unique slippage design of Curve, the investigation of volume on the sandwich attack is also instructive. We discovered that the volume per transaction for sandwich bots is one magnitude larger than for arbitrage bots. How the volume impacts the sandwich bot’s revenue and the victim’s loss is also listed in detail.</p><p>The trading opportunities for arbitrage are relatively related to the intensity of market price fluctuations. However, the opportunities for sandwich bots do not seem to correlate with price fluctuations in the market. Some lucky bots could generate attractive wealth. But not all MEV bots could generate positive profit, where the cost of the MEV is also investigated. The most favorite Curve pool for the arbitrage bot and sandwich bot is also provided in the following content.</p><p>When we investigated the sandwich bot’s activities, we discovered that token exchangers could be sandwich victims in the Curve pool. But those adding/removing liquidations to/from Curve pools could also be attacked, where the revenue generated from those victims is considerable. Compared with Uniswap, sandwich attacks are more challenging to execute in Curve pools. But it is worth noticing that the percentage of sandwiches in Curve keeps increasing in the time range we inspected. More and more victims have suffered sandwich attacks and losses since June, with an increasing speed of 300%.</p><h2 id="h-revenue-from-mev" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Revenue From MEV</h2><p>Curve’s MEV revenue comes from two aspects:</p><ul><li><p>Arbitrage gains when reducing the price spread between markets.</p></li><li><p>Sandwich attack gains when front-running users’ transactions</p></li></ul><p>The revenue generated from arbitrage will influence the impermanent loss of liquidity providers (LPs) and the slippage loss of swap users. But sandwich revenue directly causes victims to bear the slippage loss.</p><h2 id="h-total-revenue-by-different-mev-types" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Total Revenue by Different MEV Types</h2><p>Figure 1 shows an overview of the revenue generated from arbitrage and sandwich bots involving Curve pools and lists the total fee revenue from Curve for comparison.</p><p>Here is the performance of the two MEV types during the period from June 1st to Oct 31st:</p><ul><li><p>Arbitrage bots have generated more than $10M in revenue from transactions that involved Curve pools, with total arbitrage counts of 40,419.</p></li><li><p>Sandwich bots extracted $0.98M revenue from the victims trading in Curve pools, with total sandwich counts of 970.</p></li><li><p>The Curve pools revenue from swap fees is around $15 M (source <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dune.com/queries/100805/203433">🏆Curve.fi trading fee per day</a>.)</p></li></ul><p>Compared with the fee revenue that Curve pools have generated, the total extractable value from the two MEV types crosses 73% of the pool’s revenue.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 1: Total revenue of Arbitrage and Sandwich that happened in Curve pools compared with the fee revenue generated by Curve</strong></p><h2 id="h-revenue-distribution-of-each-mev-type" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Revenue Distribution of Each MEV Type</h2><p>Here is the examination of revenue distribution for arbitrage and sandwich transactions. As shown in Figure 2, most of the arbitrage bots could generate revenue in the range of $11-$100. And sandwich bots would spread the revenue between $1 to $10K.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 2: Revenue distribution of arbitrage and sandwich</strong></p><p>Figure 3 shows the boxplot of the revenue distribution for arbitrage and sandwich, clearly indicating a fat tail distribution on the revenue that the MEV bots generated.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 3: Boxplot of the revenue distribution for arbitrage and sandwich</strong></p><p>We have summarized some statistical numbers on the revenue distribution, which intuitively indicate that ‘lucky’ highly profitable bots contributed most of the revenue:</p><ul><li><p>75% of arbitrage bots make revenue less than $100. The remaining 25% of transactions made 9.4 M revenue and took over 94% of all the revenue.</p></li><li><p>For the sandwich bots, the majority’s revenue of a single transaction is higher than arbitrage bots. 75% of sandwich bots make revenue less than $1000. The remaining 25% of transactions make 0.86 M revenue and took over 87.8% of all the revenue.</p></li></ul><h2 id="h-monthly-revenue-trend-since-june-2022-by-different-mev-types" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Monthly Revenue Trend Since June 2022 by Different MEV Types</h2><p>By investigating the monthly revenue trend for arbitrage and sandwich bots, we aim to provide an overview of the value extracted by MEV from a timeline perspective. Figure 4 shows the monthly revenue generated by arbitrages and sandwiches from Curve pools and compares them with the fee revenue that Curve generated each month.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 4: Monthly revenue for arbitrage and sandwich bots. The right-hand graph shows the percentage comparison between arbitrage revenue, sandwich revenue</strong>,** and fee revenue.**</p><p>As shown on the left side of Figure 4, we provided the sum of the revenue for each month since June. The magnitude of the monthly revenue for arbitrage bots is one magnitude larger than the sandwich bots. The total revenue of arbitrage bots, which is much larger than the sandwich bots, originates from highly active arbitrage activities compared with sandwich activities. We will provide more investigations into the MEV bots frequency analysis in the third session.</p><p>In June and Sep, arbitrage bots generated more revenue than the rest of the months. To see what happened in those two months, we expand the timeline to investigate the daily revenue trend in more detail. As shown in Figure 5, some extremely profitable arbitrage bots generate more than 1 million dollars, which significantly raises monthly revenue. Our transaction analysis tool, EigenTx, provides a detailed analysis of how the ‘lucky’ bots generate that much revenue. If interested, we have attached the link for reference.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 5: Daily revenue for arbitrage and sandwich bots. The right-hand graph shows the percentage comparison between arbitrage revenue, sandwich revenue</strong>,** and fee revenue**.</p><p>The <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/eigentx/0xc2969993a652dec6a3ba52b3437bd9cac9bdd5153d2962b9e843ebcaaa580139">transaction</a> generated high revenue on June 13th. This revenue is related to the stETH de-peg, which saw high trading volume on Curve on that day.</p><h2 id="h-correlation-of-revenue-from-different-mev-types" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Correlation of Revenue From Different MEV Types</h2><p>We have also conducted a correlation analysis on the revenue for both arbitrage and sandwich bots, aiming to reveal any conflicts between those bots. The calculation of the correlation coefficient disregarded those bots that generate extreme revenue, and the final output is 0.11.</p><p>From an overview perspective, it didn’t indicate any negative correlation between the two MEV bots. So we believe there are no apparent interest conflicts between arbitrage agents and sandwich agents.</p><p>We also investigated the correlation between the extracted value from arbitrage bots and fee revenue from the swap users. The correlation coefficient is 0.7 when comparing the 7-day rolling average of arbitrage revenue and fee revenue.</p><p>Figure 6 shows the correlation between arbitrage and fee revenue. The positive correlation could be associated with the correlation between arbitrage volume and total trading volume. In the next session about the trading volume investigation, the arbitrage revenue is also positively related to the trading volume. More details are in the following session on the research of trading volume for different MEV types.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 6 Correlation between fee revenue and arbitrage revenue</strong></p><p>Note that we have also compared the fee revenue with the sandwich revenue. The correlation is much less than with arbitrage. This could be explained by the lower correlation between the sandwich volume change and total volume change.</p><h2 id="h-trading-volume-of-curve-liquidity-pools-involving-mev" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Trading Volume of Curve Liquidity Pools Involving MEV</h2><p>Volume contribution from arbitrage and sandwich bots to Curve is also an important metric to evaluate the impact of MEV on the macroscopic level. Volume is also an indispensable feature to interfere with the price slippage of liquidity pools, which is the essence of the mechanism of sandwich attacks. So in this section, we will provide a statistical overview of the volume from arbitrage and sandwich, the distribution, and correlation with revenue. In our session, ‘Detailed analysis on sandwich bots’, we provide detailed information like sandwich volume distribution, hoping to illuminate the investigation on the slippage tolerance design for Curve liquidity pools.</p><p>The volume calculation is not simply the sum of the volume of arbitrage transactions or sandwich transactions. Because the volume of arbitrage transactions would include the trading volume of other venues, and the volume for sandwich transactions would involve the volume from other pools unrelated to the sandwich attacks. So we have calculated the arbitrage volume based on filtering out the volume that only occurred directly on Curve pools and used the same logic for sandwich volume calculation.</p><p>We converted the final output of the volume to USD and based the token price calculation on our newest version of the price index. More details are in the methodology session.</p><p>Here is the summary of the total volume of the two MEV types during the period from June 1st to Oct 31st:</p><ul><li><p>Arbitrage bots have contributed a total of $2.2 billion volume to curve pools.</p></li><li><p>Sandwich bots have contributed a total of $1.2 billion volume to curve pools.</p></li><li><p>For comparison, we have also listed the total volume from Curve pools, around $16 billion. (source: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dune.com/queries/100711/203154">📈Curve.fi total trading volume per day</a>)</p></li></ul><h2 id="h-volume-trend-by-different-mev-types" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Volume Trend by Different MEV Types</h2><p>To start with, we compared the trading volume of arbitrage and sandwich bots for each day and then compared that with the total volume from the main Curve liquidity pools. The MEV volume crossed 20% of the total volume on most days. And there are some single days when the MEV volume is roaring to dominate the total volume.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 7: Daily volume trend for arbitrage and sandwich bots. The total volume of Curve pools is also listed for comparison. The right-hand side of the graph shows the daily trend on the percentage of MEV volume to total volume</strong>.</p><p>The daily trend indicates that the total arbitrage volume and total sandwich volume for each day are around the same magnitude. Considering the much more active arbitrage bots than sandwich bots (referring to the next session of the MEV bot frequency analysis), the average volume of single sandwich transactions should be greater than arbitrage transactions. Figure 8 shows the average volume per observation of the arbitrage and sandwich transactions, demonstrating that the average volume of sandwich transactions is one magnitude larger than arbitrage.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 8 Average volume per observation for the arbitrage and sandwich transactions</strong></p><p>We provide further comparisons of the volume between arbitrage and sandwich attacks in the following content.</p><h2 id="h-volume-distribution-for-each-mev-type" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Volume Distribution for Each MEV Type</h2><p>We have investigated the volume distribution for arbitrage and sandwich bots. Figure 9 describes the transaction counts in each volume range. The majority of arbitrage transaction volume concentrates in the range of 1K-10K. But sandwich volume primarily concentrates in the 100k~1m range.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 9 Volume distribution for arbitrage and sandwich bots</strong></p><p>Here is the boxplot to compare the arbitrage volume with the sandwich attacker’s volume. We separate the attacker’s volume because it’s highly related to the slippage tolerance calculation, which is the motivation of a sandwich attack. The median volume of the sandwich attacker is one magnitude larger than the arbitrageur’s volume. This is related to the unique price algorithm, which is different from Uniswap V3 with the constant product formula. Curve enables its pools to suffer less slippage in the stablecoin, which means the attacker will need to input more volume to initiate a price slippage for a sandwich attack. We will investigate further and provide more evidence in our future reports.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 10: Boxplot distribution of arbitrage volume and sandwich attacker’s volume. The left side of the box shows a 25% quartile, the middle line represents the median data, and the right side of the box shows a</strong> <strong>75% quartile of the data.</strong></p><h2 id="h-correlation-between-volume-and-revenue" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Correlation Between Volume and Revenue</h2><p>We have analyzed the correlation between revenue and volume. As shown in Figure 11, there is a positive relationship between the revenue extracted and trading volume for both sandwich and arbitrage bots.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 11 Correlation between revenue and volume</strong></p><h2 id="h-mev-bots-frequency-analysis" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">MEV Bots Frequency Analysis</h2><p>The frequency analysis on the counts of each MEV type could reflect how frequently those bots spot MEV opportunities. We based our identification of MEV bots for Curve pools on the minimum set, but comparing the data along the timeline would still be inspiring. We have analyzed the daily observations and compared them with the price fluctuations to overview what will influence MEV opportunities for Curve pools.</p><h2 id="h-daily-observations-trend-of-mev-since-june-2022-in-curve-liquidity-pools" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Daily Observations Trend of MEV Since June 2022 in Curve Liquidity Pools</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 12 Daily counts of arbitrage and sandwich bots</strong></p><p>From the above figure, we can see that arbitrage bots have started to be relatively active since June. But the activities for sandwich bots are significantly smaller than arbitrage bots. This indicates arbitrage bots are more likely to find MEV opportunities in Curve pools.</p><h2 id="h-correlation-of-mev-daily-observations-and-price-change" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Correlation of MEV Daily Observations and Price Change</h2><p>The fluctuation of observation frequency positively correlates with the absolute price change of representative crypto assets for both arbitrage and sandwich activities. We have calculated the daily frequency fluctuation with the 7-day price change percent of ETH, BTC, and CRV.</p><p>The correlation coefficient is shown below:</p><p>Arbitrage vs ETH 0.48</p><p>Arbitrage vs BTC 0.46</p><p>Arbitrage vs CRV 0.48</p><p>Sandwich vs ETH -0.02</p><p>Sandwich vs BTC -0.14</p><p>Sandwich vs CRV -0.13</p><p>The result shows the occurrence of trading opportunities for arbitrage is relatively related to the intensity of market price fluctuations. However, the opportunities for sandwich bots don’t seem to correlate with the price fluctuation in the market. The sandwich result differs from Uniswap (with a 0.6 correlation coefficient of price fluctuation). One reason could be that the sandwich activities are less compared with Uniswap (more evidence on detailed analysis of sandwich bots in the following content), so the influence of the market price will be less. Another reason is that Curve contains more stablecoin pools, meaning sandwich opportunities will rely less on the price fluctuation in the market.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 13 daily observation of MEV bots and price fluctuation of ETH, BTC and CRV.</strong></p><h2 id="h-profit" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Profit</h2><p>MEV bots’ actual profit left in their pockets is another parameter to predict how attractive the MEV market will be for outsiders. Here we should notice that evaluating the profit merely by relying on the on-chain data could be biased because on-chain data does not cover the off-chain trading strategy. But it is still worth investigating the profit MEV bots could generate from an overview perspective.</p><p>We based the profit calculation on US dollars on our price index service. Note that if the price error is close to the difference between revenue and cost, it would highly influence the final output result, whether or not a bot generates profit. We believe the profit data is within the error limits based on the latest version of our price index.</p><h2 id="h-daily-profit-distribution" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Daily Profit Distribution</h2><p>Figure 14 shows the daily profit distribution and the percentage to each other. Similar to the daily revenue trend, arbitrage and sandwich bots gain an average profit on most days and have a few lucky days to generate attractive wealth. What is the trading strategy of these ‘lucky’ bots? It is a good time to refer to the detailed analysis of transactions on EigenTx (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/eigentx/0x2a615005a63785284f11a4c5cb803d1935d34e358c10a3b4d76398d2e7bb2f9d">Transaction Flow Chart | EigenTx:0x2a615005a63785284f11a4c5cb803d1935d34e358c10a3b4d76398d2e7bb2f9d</a>)</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 14 Daily profit trend of MEV and their percentage to each other.</strong></p><h2 id="h-mev-profit-distribution" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">MEV Profit Distribution</h2><p>The pdf of profit distribution follows the fat tail distribution. And the maximal profit of sandwich bots is at least two orders of magnitude smaller than arbitrage. Apparently, not all MEV bots can generate positive profit. Some MEV bots also suffer from loss due to transaction costs, which we will introduce next.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 15 The PDF plot on profit and loss of oberservations</strong></p><h2 id="h-cost" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Cost</h2><p>Before the introduction of Flashbots, the challenge for sandwich bots was to order their attacks by strategically setting the gas fee. MEV bots also participate in the gas fee auction market, and the fierce competition drives up the cost of gas fees very high. With the emergence of Institutions like Flashbots, it is now possible for bots to guarantee that their attack transactions order via off-chain auctions, and some of these auction costs convert into miner tips in the form of <em>coinbase.transfer().</em> The gas fee and miner tips constitute the main explicit cost for MEV bots. We have compared the MEV cost with time, and the cost-revenue ratio.</p><h2 id="h-mev-cost-with-time-since-june-daily" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">MEV Cost With Time Since June (Daily)</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 16 Monthly average cost per observation and the percentage to total revenue.</strong></p><p>The cost of arbitrage is relatively stable and low compared with sandwich bots. The June cost is higher and relates to the volume peak on June 13. The trading volume and revenue peaked on that day, and so did the arbitrage cost.</p><p>The cost of sandwich bots fluctuates more intensely, and the average cost is much higher than arbitrage bots.</p><p>The proportion of revenue allocated to miners for arbitrage has kept decreasing since June.</p><p>However, the proportion of revenue allocated to miners for sandwich bots has grown significantly, approaching 90% in October, indicating an increasing competition for sandwich opportunities in Curve pools.</p><h2 id="h-pool" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Pool</h2><p>We have also investigated which pools are more likely to be involved in MEV activities.</p><h2 id="h-the-most-popular-pool-for-arbitrage-in-curve-by-arbitrage-trading-volume" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The most popular pool for arbitrage in Curve (by arbitrage trading volume)</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 17 The top 10 Curve liquidity pools ranking by arbitrage trading volume(green). The total arbitrage transaction counts (orange) are also listed for comparison.</strong></p><p>The pool that has involved the most trading volume is: 0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7</p><p>This is the typical Curve 3 pool with stable coin DAI/USDC/USDT, indicating that the stablecoins have been involved significantly during arbitrages in Curve.</p><p>But the Curve pool that provided the most arbitrage opportunities is (with most transaction counts):</p><p>0xd51a44d3fae010294c616388b506acda1bfaae46</p><p>This is the Curve pool with three tokens: USDT/WBTC/WETH.</p><h2 id="h-the-most-popular-pool-for-sandwiches-in-curve-by-sandwich-trading-volume" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The most popular pool for sandwiches in Curve (by sandwich trading volume)</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 18 The top 10 Curve liquidity pools ranking by sandwich trading volume(green). The total sandwich transaction counts (orange) are also listed for comparison.</strong></p><p>The pool with the most trading volume for the sandwich bot is</p><p>0xD51a44d3FaE010294C616388b506AcdA1bfAAE46</p><p>This is the same pool with USDT/WBTC/WETH tokens that provide most arbitrage opportunities above. It experienced the most trading volume and is also the most favorite pool for attackers.</p><h2 id="h-profit-breakdown-investigation" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Profit breakdown investigation</h2><p>We also present the histogram of several parameters grouped by pool address. The result also obeys fat tail distributions, which means a small bunch of pools is involved much more than the average level.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 19 Histogram of the occurance/gross revenue/cost/profit of arbitrage and sandwich transactions grouped by pool address.</strong></p><h2 id="h-participants" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Participants</h2><h2 id="h-investigations-on-the-count-of-unique-bots" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Investigations on the count of unique bots</h2><p>In this section, we have provided the number of unique bot contracts participating in arbitrage and sandwich transactions. It’s better to illustrate how many entities are behind those contracts, and we are actively working on contract address affiliation. We will provide more investigation in future reports. But in this report, we will focus on using the unique contracts and compare them from an overview perspective looking at how many contracts have participated in MEV in Curve.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 20 The left graph shows a monthly count of unique bot contracts for arbitrage and sandwich attackers. The right graph shows monthly count of unique addresses of sandwich victims.</strong></p><p>The number of arbitrage and sandwich attacker’s contracts is relatively stable in the time range we investigate. But more and more victims have suffered sandwich attacks and losses since June, with an increasing speed of 300%.</p><h2 id="h-detailed-analysis-of-different-mev-types" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Detailed Analysis of Different MEV Types</h2><p>In this section, we provide deeper information on each MEV type.</p><h2 id="h-arbitrage-bots" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Arbitrage Bots</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 21 Top 20 arbitrage contracts sorted by total profit and counts</strong></p><p>The plots show the top 20 arbitrage contracts, sorted by total profit and total activity count, respectively. We have also calculated the total profit generated by those contracts, and compared it with the total count of these bots that participated in arbitrage transactions. There is a positive relationship between total profit and total activity count. It is luck if a bot only conducts one arbitrage transaction and generates significant wealth. But most bots generate profit with a lot of effort.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 22 Correlation between total profit per arbitrage contract and count of activities per arbitrage contract.</strong></p><p>We can observe the arbitrage transactions’ structure by counting the number of venues and the percentage of Curve pools involved. In most arbitrage observations, tokens are swapped between Curve pools and other venues.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 23 Percentage of Curve pools involved per arbitrage transaction</strong></p><p>The most common arbitrage pattern is spatial arbitrage (where the venue count is 2), involving one Curve pool and another venue. This arbitrage type takes a percentage of 38.6%. The second primary common pattern is triangle arbitrage (where the venue count is 3), involving one Curve pool and two other venues.</p><p>There are also arbitrage transactions that only happen among Curve pools, where the curve_pct is 100%, indicating the participation of 100% of Curve pools in the arbitrage.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>How complex could the arbitrage involving Curve pools be? A single arbitrage transaction can also involve 172 venues, where the Curve pool is one of them. (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/eigentx/0xd350fcce80d6aab3220b6bb2911e8bb55090d0f261f6cfde987c4433a6ec8cdd">Transaction Flow Chart | EigenTx:0xd350fcce80d6aab3220b6bb2911e8bb55090d0f261f6cfde987c4433a6ec8cdd</a>)</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>For the arbitrage transactions involving Curve pools, only 0.03% of the transactions contain taxed tokens. It is one magnitude lower than Uniswap. Since Curve pools do not contain taxed tokens, the result compared with Uniswap is reasonable. Those bots can find wealth even in taxed tokens, and all of them make positive profits.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-sandwich-bots" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Sandwich Bots</h2><p>Only 19 sandwich bot contracts have initiated sandwich attacks in Curve pools. We provided their total profits and total activity counts in Figure 27. The effort pays off since the most active attacker is the second most profitable bot. However, the most profitable sandwich bot has only launched 14 sandwich attacks, using only 2 transactions to generate a total profit of more than $46k in the Curve stETH pool.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 24 Top 20 sandwich attacker’s contracts sorted by total profit and counts</strong></p><p>We have also compared the volume distribution of victim and attacker using a boxplot. As shown in the figures, the person conducting trading in Curve pools wouldn’t become a victim until the input volume is more than $100.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 25 Boxplot distribution of the volume per transaction for sandwich victim and attacker</strong></p><p>There are two attackers with input volume smaller than $100, and the revenue generated by sandwich attacks is negative. The rest of the attacks with a volume larger than $100 start to generate positive revenue.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Here is the distribution of the volume for both attacker and victim. The majority of volume size prone to getting sandwiched is in the 10k to 1m range. Most of the attacker’s volumes concentrate in the 100k-1m range.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 26 Histogram distribution of the volume per transaction for sandwich victim and attacker</strong></p><p>We hope the investigation of volume distribution for attacker and victim could shed light on the design of slippage tolerance when conducting transactions in Curve liquidity pools.</p><h2 id="h-victims" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Victims</h2><p>When we identify the sandwich attack among the transactions on-chain, we also record the behavior of the victim when they got sandwiched. One common understanding of sandwich attacks is when the victim is exchanging tokens in a liquidity pools. But it is worth noticing that when the victim launches transactions like adding liquidity into the pool or removing liquidity from the pool, there is also chance that someone will attack him.</p><p>As shown in Figure 27, only 86% of sandwich transactions happened when the victim exchanged tokens in the Curve pool. The rest of the transactions contain the steps of adding/removing liquidity. For example, 63 sandwich transactions attacked their victim while they were adding liquidity to the Curve pool, which takes 6.5% of all sandwich transactions. Note that the average revenue generated from attacking victims when they were adding/removing liquidity is also considerable. Since Curve has a meta pool allowing one token to trade with another underlying base pool, the victims’ behavior could be a combination of swap and add/remove liquidity in the pool.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 27 Tx counts and revenue break down by the victim’s actions when they get sandwiched</strong></p><p>We have also calculated the counts of sandwich attacks in the percentage of total MEV types and compared the data with the report we have released on Uniswap. Sandwich attacks are less possible in Curve pools than in Uniswap. But it is worth noticing that the percentage of sandwiches in Curve keeps increasing in the time range we inspected.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Figure 28 The percentage of sandwich transactions counts in all MEV types.</strong></p><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>From the above analysis, we can see that we cannot ignore the MEV impact on Curve. Understanding past MEV behaviors and trends could help stakeholders to better predict MEV’s future long-term influence on AMM.</p><p>Here are some interesting points we have concluded, hoping to enlighten the design of protocols and trading decision-making for stakeholders and together make a better DeFi world:</p><ul><li><p>Revenue — Arbitrage bots have generated more than $10 M in revenue from transactions that involved Curve pools, with total arbitrage counts of 40419. Sandwich bots extracted $ 0.98 M revenue from the victims trading in Curve pools, with total sandwich counts of 970. For sandwich bots, most of the revenue of a single transaction is higher than arbitrage bots, but the total revenue each month for arbitrage bots is one magnitude larger than the sandwich bots. There are no apparent interest conflicts between arbitrage agents and sandwich agents.</p></li><li><p>Volume — The MEV volume accounted for 20% of the total volume on most days. The average volume of a single sandwich transaction is one magnitude larger than an arbitrage transaction. Compared with the volume distribution of arbitrage and sandwich, the median volume of sandwich attacks is one magnitude larger than arbitrage’s volume.Curve enables its pools to suffer less slippage in the stablecoin, which means the attacker will need to input more volume to initiate a price slippage for a sandwich attack. There is a positive relationship between the revenue extracted and trading volume for sandwich and arbitrage bots.</p></li><li><p>Frequency — The activities for sandwich bots are significantly less than arbitrage bots. The result shows the occurrence of trading opportunities for arbitrage is relatively related to the intensity of market price fluctuations. However, the opportunities for sandwich bots do not seem to correlate with price fluctuations in the market.</p></li><li><p>Profit — Arbitrage and sandwich bots gain an average profit on most days and have a few lucky days to generate significant wealth. The pdf of profit distribution follows the fat tail distribution. And the maximal profit of sandwich bots is at least two orders of magnitude smaller than arbitrage. Not all MEV bots can generate positive profit. Some also suffer losses.</p></li><li><p>Cost — The arbitrage cost is relatively stable and low compared with sandwich bots. The cost of sandwich bots fluctuates more intensely, and the average cost is much higher than arbitrage bots. The proportion of revenue allocated to miners for arbitrage has decreased since June, but for sandwich bots the proportion kept increasing, approaching 90% in October, indicating an increasing competition for sandwich opportunities in Curve pools.</p></li><li><p>Pools — The pool with three tokens: USDT/WBTC/WETH, provided the most arbitrage opportunities and is also the favorite pool for attackers. The pool with the most trading volume is the stablecoin pool: DAI/USDC/USDT. From the profit distribution, we can see that a small group of pools is involved much more than the average level.</p></li><li><p>Participants — In the time range we investigated, the number of arbitrage and sandwich contracts is relatively stable. But more and more victims have suffered sandwich attacks and losses since June, with an increasing speed of 300%.</p></li><li><p>Arbitrage Bot Details — There is a positive relationship between the total profit of arbitrage bot contracts and the total activity count. The most common arbitrage pattern is spatial arbitrage (where venue count is 2), involving one Curve pool and another venue. There are also arbitrage transactions that only happen among Curve pools. A single arbitrage transaction can also involve 172 venues, where the Curve pool is one of them. Only 0.03% of the arbitrage transactions contain taxed tokens. It is one magnitude lower than Uniswap.</p></li><li><p>Sandwich Bot Details — Only 19 sandwich bot contracts have initiated sandwich attacks in Curve pools. The most profitable sandwich bot has only launched 14 sandwich attacks, using only 2 transactions to generate a total profit of more than $46k in Curve stETH pool. A person trading in Curve pools wouldn’t become a victim until the input volume is more than $100. Attackers won’t generate positive revenue until the input volume exceeds $100. It is worth noticing that token exchangers could be sandwich victims in the Curve pool. But those adding/removing liquidations to/from Curve pools could also be attacked, where the revenue generated from those victims is considerable. Compared with Uniswap, sandwich attacks are more challenging to execute in Curve pools. But it is worth noticing that the percentage of sandwiches in Curve keeps increasing in the time range we inspected.</p></li></ul><h2 id="h-methodology" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Methodology</h2><h2 id="h-data-source" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Data Source</h2><p>We base our analysis on the raw block data fetched from the full Ethereum node we built. The data range of our investigation is from block number 14881677(include) to 15871479(include). We decode the raw data to get the fine-grained data field we need.</p><p>To compare certain parameters with the overall market situation and Curve’s macroscopic parameters, we adopted data from third parties as listed below:</p><ol><li><p>ETH’s historical close price from Coinmarketcap. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://coinmarketcap.com/currencies/ethereum/historical-data/">https://coinmarketcap.com/currencies/ethereum/historical-data/</a></p></li><li><p>Curve’s fee revenue from dune: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dune.com/queries/100805/203433">🏆Curve.fi trading fee per day</a></p></li><li><p>Curve’s total trading volume per day: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dune.com/queries/100711/203154">📈Curve.fi total trading volume per day</a></p></li></ol><h2 id="h-how-do-we-identify-bots" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How Do We Identify Bots?</h2><ul><li><p>We consider a transaction to be a collection of asset transfers, and we use a set of rules to see if an MEV activity has happened by assessing the outcomes of these transfers. The rule of thumb is that there is more than one transfer (or swap) in the transaction, and the trader ends up with a surplus.</p></li><li><p>To identify different types of MEV activity, we collect observations obeying our heuristic rules for each type in the current stage, and we continue enhancing our algorithms according to false negative or false positive detected by comparing the sample results with those from MEV-inspect each day.</p></li><li><p>In this report, we identified two types of MEV type for Curve pools. The total number of observation results for arbitrage bots is 40419 and sandwich bots is 970. The investigation time range is from Jun 1, 2022, to Oct 31, 2022.</p></li></ul><h2 id="h-how-do-we-calculate-profit-and-cost" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How Do We Calculate Profit and Cost?</h2><ul><li><p>We are constantly optimizing our price index algorithm. For mainstream stable coins (USDT, USDC, DAI) and assets with relatively good liquidity (ETH, WETH, WBTC), the AMM and on-chain oracles can provide a relatively reliable quote source. With these mainstream assets’ prices settled down, we further calculate the prices of other tokens based on the swap ratio at the time of calculation.</p></li><li><p>We only consider on-chain costs for each transaction detected. The calculation process is summing up the gas fee and the *coinbase.transfer() *value (if there is any) of each transaction and convert the result to USD based on the ETH’s price.</p></li></ul><h2 id="h-disclaimer" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Disclaimer</h2><p>The “Information” contained in this post has been prepared solely for informational purposes, is in summary form, and does not purport to be complete. The Information is not, and is not intended to be, an offer to sell, or a solicitation of an offer to purchase, any securities. The Information does not provide and should not be treated as giving investment advice. The Information does not take into account specific investment objectives, financial situation or the particular needs of any prospective investor. No representation or warranty is made, expressed or implied, with respect to the fairness, correctness, accuracy, reasonableness or completeness of the Information.</p><p>We do not undertake to update the Information. It should not be regarded by prospective investors as a substitute for the exercise of their own judgment or research. Prospective investors should consult with their own legal, regulatory, tax, business, investment, financial and accounting advisers to the extent that they deem it necessary, and make any investment decisions based upon their own judgment and advice from such advisers as they deem necessary and not upon any view expressed herein.</p><p>*We are open to discussion. Please feel free to contact us via contact@eigenphi.com.</p>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[How AAVE’s $1.6 Million Bad Debt Was Created]]></title>
            <link>https://paragraph.com/@eigenphi/how-aave-s-1-6-million-bad-debt-was-created</link>
            <guid>lphAUmUXyICQ6fDGBvyc</guid>
            <pubDate>Sun, 29 Jan 2023 06:35:02 GMT</pubDate>
            <description><![CDATA[We have presented you with the story of the $CRV short saga, of which we focused on the details of liquidation transactions and liquidators. This time, in the research report we will share with you, we’d like to put on the hat of financial researchers to dissect the event using a thorough analysis of token flows. In this way, we will reveal one of the emerging risks in DeFi — risk associated with liquidity budding from features of DeFi, i.e., flash loans. And we’d like to propose how to monit...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>We have <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/p/cleaning-up-of-the-battlefield-of">presented you with the story of the $CRV short saga</a>, of which we focused on the details of liquidation transactions and liquidators. This time, in the research report we will share with you, we’d like to put on the hat of financial researchers to dissect the event using a thorough analysis of token flows.</p><p>In this way, we will reveal one of the emerging risks in DeFi — risk associated with liquidity budding from features of DeFi, i.e., flash loans. And we’d like to propose how to monitor and control such risk.</p><p>You must already be familiar with the story: a crypto whale failed miserably against a short squeeze and left an uncovered debt on the lending platform AAVE.</p><p>Here are the key takeaways from the report:</p><ul><li><p>A crypto whale dumped the CRV market with 92 million CRV borrowed from AAVE. This action resulted in a precise short squeeze attack costing the crypto whale an estimated $20 million and creating a bad debt on AAVE worth about $1.6 million.</p></li><li><p>The two pull-ups in CRV prices successively caused the shorter’s AAVE position to trigger the liquidation and insolvency threshold. 385 liquidations by 21 unique addresses emptied 63.596 million USDC collateral, leaving 2.456 million CRV unpaid.</p></li><li><p>AAVE utilizes quotes fed by on-chain oracles to calculate whether the liquidation threshold is triggered, which has a lag of about 10 minutes compared to Binance’s price information.</p></li><li><p>In between the two price pulls, there were more than 3 hours when the liquidation condition was not triggered due to a temporary price drop. At this stage, AAVE may have missed the best time to adopt a contingency strategy.</p></li><li><p>We believe the root cause of this event is the transparent nature of a blockchain makes financial information easily accessible, giving attackers more advantages.</p></li><li><p>However, the current lending protocols are not designed with a risk control mechanism based on timely adjustment according to both price and liquidity information.</p></li><li><p>We propose creating a feedback control system for DeFi based on safety cushions and liquidity sensors to better address risk in the long term.</p></li></ul><p>The figure below illustrates the dumping steps:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>And here is the token flow between Ethereum and OKX:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>How did bad debts occur? The following figures merge the facts significant in analyzing the cause of bad debts during the liquidation process.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Where did those liquidators find their capital sources? We manually sort them out with the help of our visualization tool <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://tx.eigenphi.io/analyseTransaction?chain=Ethereum">EigenTx</a>. The results are shown in the following tables.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>AAVE’s bad debt is not a unique case in terms liquidity risk. Recently, in the BSC ecosystem, the Ankr platform was hacked to issue a large number of aBNBc out of thin air due to a vulnerability, resulting in more than a dozen protocols’ associated pools, including Pancake and Helio, suffering heavy damage.</p><p>The moral of these stories is: <strong>an asset’s level of liquidity and safety margin can change over its life cycle and is also susceptible to contagion risk by associated assets.</strong></p><p>To improve the status quo, <strong>we propose a feedback system that combines a safety cushion and various sensors based on real-time liquidity vectors to detect defects and respond in time to changes in the market.</strong></p><p>There are so much valuable data and information embedded in the report. Please <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://drive.google.com/file/d/1u3vtcsQ1qfclt6Od8aZx5DkvuQRE4GMH/view?usp=share_link">download the research</a> *Report on Code at Risk: An In-depth Analysis of How AAVE’s $1.6 Million Bad Debt Was Created *and leave your comments and questions.</p><p>You can also check out the video we made for the saga:</p><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/channel/UCQa9hWUD2vIYZrI3KsqgBWQ">Youtube</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[Cleaning Up of the Battlefield of Avi and Curve]]></title>
            <link>https://paragraph.com/@eigenphi/cleaning-up-of-the-battlefield-of-avi-and-curve</link>
            <guid>61AcceEonc1iOGdyrO1E</guid>
            <pubDate>Fri, 20 Jan 2023 03:36:03 GMT</pubDate>
            <description><![CDATA[Photo by Harry Gillen on UnsplashWhat HappenedOn November 22, a big whale (ponzishorter.eth) was found trying to short CRV. A large amount of CRV was borrowed from Aave and sold off. The price of CRV fell rapidly. But soon came the white knight. Michael Egorov, the founder of Curve added 20 million $CRV asset to avoid its price falling. After that, the battle ended with the debt of the shorter (@avi_eisen) who borrowed more than 92 million CRV in Aave being liquidated. Here are the lending pr...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/fdd811c2637d6f0e15c0fd0c95e2538c1d3f3aade058d20ac2a7e031ff1f781b.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Photo by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://unsplash.com/@gillenha?utm_source=medium&amp;utm_medium=referral">Harry Gillen</a> on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></p><h2 id="h-what-happened" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">What Happened</h2><p>On November 22, a big whale (ponzishorter.eth) was found trying to short CRV. A large amount of CRV was borrowed from Aave and sold off. The price of CRV fell rapidly. But soon came the white knight. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/newmichwill?lang=en">Michael Egorov</a>, the founder of Curve added 20 million $CRV asset to avoid its price falling. After that, the battle ended with the debt of the shorter (@avi_eisen) who borrowed more than 92 million CRV in Aave being liquidated.</p><p>Here are the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lending/user/0x57e04786e231af3343562c062e0d058f25dace9e">lending profiles of @avi_eisen</a> and Curve founder <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lending/user/0x7a16ff8270133f063aab6c9977183d9e72835428">@newmichwill</a>. It can be seen that after the liquidations, Avi’s debt dropped significantly.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>To make the whole story clearer, the following is<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/EigenPhi/status/1595695080123211781?s=20&amp;t=auEkD37PYctjnxJ_S7MRuw"> the action and timeline of both sides</a> in the battle. From 17 to 23 of November, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lending/user/0x57e04786e231af3343562c062e0d058f25dace9e">@avi_eisen</a> borrowed a total of $37,583,795.15 worth of CRV (possibly with multiple leverages involved), trying to lower the price of CRV, but he underestimated the CRV held by the Curve founder. In response, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lending/user/0x7a16ff8270133f063aab6c9977183d9e72835428">@newmichwill</a> deposited $14,896,307.65 worth of CRV, reducing the possibility of CRV’s illiquidity.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>This story has been talked about on social media for a while, so what we really want to tell is the story of liquidation transactions after this battle, which we found quite interesting.</p><h2 id="h-liquidations-overview" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Liquidations Overview</h2><p>The CRV battle seems to have come to an end on 24 Nov. The event brought a surge in liquidation transactions. In the 24 hours from 22 to 23 Nov, basically, the vast majority of liquidation transactions were CRV liquidation transactions.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>But during the process, there were about three hours of silence. In these three hours, no CRV liquidation transactions occurred. We don’t yet know what happened, but we will follow up on this. If any of you have leads on this, please feel free to leave a comment.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-who-are-the-top-liquidators" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Who Are the Top Liquidators</h2><p>We spotted 21 liquidators and 300+ transactions included in CRV liquidation.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0x80d4230c0a68fc59cb264329d3a717fcaa472a13">The top liquidator</a> obtained over $23.1 million worth of USDC, covering the debt of $22.4 million worth of CRV and making $728K million net revenue. The profit of 19 transactions the liquidator made was between 1K and 10K. And you can also check out the gas prices paid for these profitable liquidations.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>However, liquidations with huge amounts may not come with huge profits. Sometimes there are even painful losses. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0x45cb6131d548344c7f150d958026fe0923ea86e4">The address ranked sixth</a> in liquidation amount lost $5000+.</p><p>And don’t forget that it is still possible to be sandwiched during the liquidation. We found some sandwich attacks that occurred when the liquidators were busy digging for treasure. Like in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x97ccb751af893a954fb95cbc2e03ab132b6320fa239fd2b7c093c74b02c9c86f,0xcebcdfc496d7adfeda347cbbcd6a6b11c0ba5ba4c472056d504b23735e033346,0x6588d2a264f4bacab9d805c40043d1f6cac338d033dbab1650defdbf7dacde3c">this transaction</a>, the attacker got around $30 (though not much).</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-how-did-it-work" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How Did It Work</h2><p>We were curious about:</p><ul><li><p>Where did the CRV come from?</p></li><li><p>Where did it go?</p></li><li><p>How did these liquidation transactions works?</p></li></ul><p>After scanning these 300+ CRV liquidation transactions, we found that these transactions mainly involved the following pools. And about 12% of these transactions used flash loans from dYdX.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>These transactions powered by flash loans seem to be larger in amount and follow a similar pattern. Let’s take one of these transactions as an example, and let me break it down for you. See the details of this transaction <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x97ccb751af893a954fb95cbc2e03ab132b6320fa239fd2b7c093c74b02c9c86f,0xcebcdfc496d7adfeda347cbbcd6a6b11c0ba5ba4c472056d504b23735e033346,0x6588d2a264f4bacab9d805c40043d1f6cac338d033dbab1650defdbf7dacde3c">here</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><ol><li><p>Initially, the liquidator borrowed 140,251 WETH by Flashloan from dYdX (Step 0).</p></li><li><p>Swapped WETH for 214,807.5856 CRV from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x8301ae4fc9c624d1d396cbdaa1ed877821d7c511">Curve Pool</a> (Step 1 to 4).</p></li><li><p>Liquidation on Aave for 158,983.6439 USDC (Step 5 to 8).</p></li><li><p>Swapped USDC for 141.0548 WETH from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8">Uniswap V3 pool</a> (Step 9 to 10).</p></li><li><p>Paid the miner (Step 11 to 13).</p></li><li><p>Repaid the flash loan (Step 14).</p></li></ol><p>We also found <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/EigenPhi/status/1595876553237356547?s=20&amp;t=lMBKzFcUk7_YPnp6CuREug">6 other patterns</a> in these liquidation transactions. Some are simple but clever, and some are not so worthwhile.</p><ol><li><p>The liquidator had all the CRV needed, and he could finish the liquidation directly. See the details <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x80a330b80d6ff3b4e8492762e94ff93f2a9865e5180d3c945e6d19701a570314">here</a>.</p></li></ol><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>2. No CRV.</p><p>USDC &gt;&gt;&gt; WETH (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640">UniV3 Pool</a>) &gt;&gt;&gt;CRV (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x8301ae4fc9c624d1d396cbdaa1ed877821d7c511">Curve Pool</a>) &gt;&gt;&gt; Make the liquidation in Aave &gt;&gt;&gt; Rake up the profits in USDC</p><p>See the details <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0xff17ee56bf81dd75d36105b0bf521d494c30260bd94311a38f7bfd09fe7a3019?allow-different=0&amp;disable-reverse-debt=0&amp;hide-inter=0&amp;rankdir=TB&amp;show-net-asset-flow=0">here</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>3. No CRV. Only UniV3 pools.</p><p>USDC &gt;&gt;&gt; WETH (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8">UniV3 Pool:0x8ad…</a>/<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640">UniV3 Pool:0x88e…</a> ) &gt;&gt;&gt;CRV (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x4c83a7f819a5c37d64b4c5a2f8238ea082fa1f4e">UniV3 Pool</a>) &gt;&gt;&gt; Make the liquidation in Aave &gt;&gt;&gt; Rake up the profits in USDC</p><p>See the details <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x91a2144e921664f92a73939a3234e6b4ae0dd7e93c0a1aca57d74a234108ba35">here</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>4. No CRV. UniV3+V2.</p><p>USDC &gt;&gt;&gt; WETH (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc">UniV2 Pool</a>) &gt;&gt;&gt;CRV (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8">UniV3 Pool</a>) &gt;&gt;&gt; Make the liquidation in Aave &gt;&gt;&gt; Rake up the profits in USDC</p><p>See the details <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0xb9e15ff579f80021fbe152ad8b8fd677afc0b0f1da7a8fbce79e4d646b725128">here</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>5. No CRV. UniV3+SushiSwap</p><p>USDC &gt;&gt;&gt; WETH (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640">UniV3 Pool</a>) &gt;&gt;&gt;CRV (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x58dc5a51fe44589beb22e8ce67720b5bc5378009">SushiSwap</a>) &gt;&gt;&gt; Make the liquidation in Aave &gt;&gt;&gt; Rake up the profits in USDC</p><p>See the details <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x0ccf45f050a33e99dc16414472001577e7e5f0d87d77d29b5f1a235f0e49e6e5">here</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>6. No CRV. SushiSwap+UniV3</p><p>USDC &gt;&gt;&gt; WETH (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x397ff1542f962076d0bfe58ea045ffa2d347aca0">SushiSwap</a>) &gt;&gt;&gt;CRV (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0x4c83a7f819a5c37d64b4c5a2f8238ea082fa1f4e">UniV3 Pool</a>) &gt;&gt;&gt; Make the liquidation in Aave &gt;&gt;&gt; Rake up the profits in USDC</p><p>See the details <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x87beda1d862b1d0bb287e8ee90c4525854404d48d2c415bf09c511d7023ebcf7">here</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-fun-facts" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Fun facts</h2><ul><li><p>Here’s the CRV in Curve founder <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lending/user/0x7a16ff8270133f063aab6c9977183d9e72835428">@newmichwill</a>’s wallet after the battle. For the moment, he’s the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zapper.fi/zh/token/ethereum/0xd533a949740bb3306d119cc777fa900ba034cd52/CRV/details?tab=owners">6th biggest owner of CRV.</a></p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><ul><li><p>The bad things come in succession. We found Avi had been sandwiched before he got liquidated and lost $190. See more info about the sandwich <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x54c705bf70d55c96233e153d11ab33a1d7f0fa5e0800e42a1f04f9e858a662c7,0x3a5ebb5b76fcb6e0fbafa53ab1b8e6d62ee73dff90dba7b8d0a7b7caac57ecb3,0xae63aeb4dd7148aa446ab94b0a6f232d74eca71a07736922df09f251000db4ab">here</a>.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-whats-next" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">What’s Next</h2><p>During this battle, Curve also released the white paper for its new stablecoin. What impact has this battle had on CRV, has it also affected its new stablecoin, and what changes and opportunities will the Curve bring to the DeFi world? EigenPhi is working on it and will soon publish an in-depth report on Curve. Stay tuned.</p><p><strong>References</strong></p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/CurveCap/status/1595100002007027713">https://twitter.com/CurveCap/status/1595100002007027713</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/RudyKadoch/status/1595210314685071363">https://twitter.com/RudyKadoch/status/1595210314685071363</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/DefiMoon/status/1594431248956391424">https://twitter.com/DefiMoon/status/1594431248956391424</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/CurveCap/status/1595459882656104451">https://twitter.com/CurveCap/status/1595459882656104451</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zapper.fi/account/0x7a16ff8270133f063aab6c9977183d9e72835428?">https://zapper.fi/account/0x7a16ff8270133f063aab6c9977183d9e72835428?</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[A Sanwich Cook Bot Always Targeting Whales Borrowed the Biggest Flash Loan of November: $153.9M]]></title>
            <link>https://paragraph.com/@eigenphi/a-sanwich-cook-bot-always-targeting-whales-borrowed-the-biggest-flash-loan-of-november-153-9m</link>
            <guid>zOtTC9ZQfNDq8BsImrU0</guid>
            <pubDate>Fri, 20 Jan 2023 03:34:23 GMT</pubDate>
            <description><![CDATA[Ignorance is the parent of fear. — — Moby DickPhoto by Mackenzie Marco on Unsplash Suppose you are a whale who loves to trade vast amounts of assets via Uniswap, Curve, Dodo, and Balancer; you’d better take precautions from now on. Otherwise, you will fall prey to a sandwich front-running attacker lurking in the darkest corners of these trading venues and lynching uninformed whale traders. I.e., dubstepnerd.eth, the victim of this sandwich enabled by a $153.9M flash loan, the biggest one of N...]]></description>
            <content:encoded><![CDATA[<p><em>Ignorance is the parent of fear.</em> <em>— — Moby Dick</em></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b8a1f7fab8bb01f78cf3c659067e215f59259820617743f19847cc6e845277fc.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Photo by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://unsplash.com/@kenziem?utm_source=medium&amp;utm_medium=referral">Mackenzie Marco</a> on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></p><p>Suppose you are a whale who loves to trade vast amounts of assets via Uniswap, Curve, Dodo, and Balancer; you’d better take precautions from now on. Otherwise, you will fall prey to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich/attacker/0x0000000000590b74eb97457bf7b3ff6d63c6fde2">a sandwich front-running attacker</a> lurking in the darkest corners of these trading venues and lynching uninformed whale traders. I.e., <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich/victim/0xa00b0540f43e00a634d016a31b0a39d95170e6bf">dubstepnerd.eth</a>, the victim of this sandwich enabled<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bit.ly/3UgAky4"> by a $153.9M flash loan</a>, the biggest one of November on Ethereum.</p><h2 id="h-mev-summary" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">MEV Summary</h2><p>When making <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x12632fa97a1120d60332e735e9b93de8d372ecfe50c20652077d6532fce17f8d,0xa69e66a87b445d620e338e1564853b1a70f101e91c65091d4a1e4720f662798d,0x2aaeb10d28e31c46d970bcdfa38f41fb6a15fcdf1e0759962a66fee9d51332e9">the sandwich</a>, utilizing a leveraged position, the MEV Bot collateralized part of its token and flash-loaned 127,006 WETH on AAVE. Then it borrowed DAI to swap USDC in a Curve LP, in which the price of the token pair was impacted. Next, it saved the USDC to MakerDAO, deposited the minted DAI to AAVE, burned part of the debt of DAI, and withdrew 127,006 WETH to pay back the flash loan.</p><h2 id="h-key-contracts-roles-and-addresses" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Key Contracts, Roles, and Addresses</h2><p><strong>Attacker EOA(from address):</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich/attacker/0xf480fab87c07ec2ddd68a83ec0319bb466b1afa2">0xf480fAb87c07EC2dDd68A83eC0319BB466B1Afa2</a></p><p><strong>MEV Bot:</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich/attacker/0x0000000000590b74eb97457bf7b3ff6d63c6fde2">0x0000000000590b74eb97457bf7b3ff6d63c6fde2</a></p><p><strong>Borrower:</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lending/user/0x2a9152d882ba3fc4265d47447a7a00970f90a25e">0x2a9152d882ba3fc4265d47447a7a00970f90a25e</a></p><p>The three addresses above can be seen as the same group belonging to the attacker.</p><p><strong>Curve LP:</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7">0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7</a></p><p><strong>Balancer Vault:</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich/victim/0xba12222222228d8ba445958a75a0704d566bf2c8">0xba12222222228d8ba445958a75a0704d566bf2c8</a></p><p><strong>MakerDAO PSM:</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0x0a59649758aa4d66e25f08dd01271e891fe52199#tokentxns">0x0a59649758aa4d66e25f08dd01271e891fe52199</a></p><p><strong>AAVE’s aWETH contract</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0x030ba81f1c18d280636f32af80b9aad02cf0854e">0x030ba81f1c18d280636f32af80b9aad02cf0854e</a></p><p>**Uniswap USDC/WETH V2 Pool: **<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/lp/0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc">0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc</a></p><h2 id="h-frontrun-of-the-sandwich" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Frontrun of the Sandwich</h2><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x12632fa97a1120d60332e735e9b93de8d372ecfe50c20652077d6532fce17f8d?allow-different=0&amp;disable-reverse-debt=0&amp;hide-inter=0&amp;rankdir=LR&amp;show-net-asset-flow=0">Open this link</a> to view the frontrun transaction with features like step-by-step, P/L, and CallTrace Tree.</p><p><strong>The goal of this transaction:</strong> raise the price of USDC against 3CRV in the Curve Pool.</p><p>Here is the token flow chart of it.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The detailed steps explanation:</p><p><strong>Step 0–4:</strong> From address and MEV Bot transferred their own token: 50.6649 ETH, 77,015.34 DAI, 261,104.4678 USDC, and flash-loaned 127,006 WETH to borrower.</p><p><strong>Step 5–14:</strong> the borrower address saved all the tokens to AAVE as collateral and acquired aToken provided by AAVE.</p><p><strong>Step 15,16:</strong> the borrower borrowed 49,065,460 DAI from AAVE and received the corresponding debt token.</p><p><strong><em>Step 17,18: the borrower swapped 49,065,460 DAI for 49,038,215 USDC in the Curve pool, finishing raising the USDC exchange price. This is the crucial step of the whole attack.</em></strong></p><p><strong>Step 19–22:</strong> the borrower saved the USDC to MakerDAO and received the same amount, 49,038,215, of DAI, then it paid back the DAI to AAVE to pay part of the debt generated from borrowing the DAI.</p><p><strong>Step 23–25:</strong> the borrower took out most of the WETH collateral and paid back the 127,006 WETH flash loan.</p><p>The MEV Bot suffered a loss of 27,244 $DAI due to paying the debt of 49,065,460 DAI with 49,038,215 DAI.</p><h2 id="h-victim-transaction" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Victim Transaction</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0xa69e66a87b445d620e338e1564853b1a70f101e91c65091d4a1e4720f662798d?allow-different=0&amp;disable-reverse-debt=0&amp;hide-inter=0&amp;rankdir=&amp;show-net-asset-flow=0">this transaction</a>, the victim’s EOA took out the liquidity by burning 3Crv for USDC.</p><p>Eventually, this whale lost 8.052563 ETH, computed by the revenue of the attacker.</p><h2 id="h-backrun-of-the-sandwich" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Backrun of the Sandwich</h2><p>In <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0x2aaeb10d28e31c46d970bcdfa38f41fb6a15fcdf1e0759962a66fee9d51332e9?allow-different=0&amp;disable-reverse-debt=0&amp;hide-inter=0&amp;rankdir=&amp;show-net-asset-flow=0">this transaction</a>, using a flash loan, the MEV BOT borrowed WETH and put into AAVE as collateral to borrow USDC, then it swapped the USDC to CurveLP at a high price to complete the sandwich attack, getting a large amount of DAI. After repaying the debts and miners’ tips, the attacker finally raked profit.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The detailed steps explanation:</p><p><strong>Step 0,1,2</strong>: The borrower flash-loaned 127,006.0842 WETH from Balancer and saved to AAVE as collateral, receiving aWETH.</p><p><strong>Step 3,4:</strong> The borrower borrowed 49,038,215.8275 USDC from AAVE and received the dept token.</p><p><strong>Step 5,6:</strong> The borrower swapped the loaned 49,038,215.8275 USDC for 49,075,250.685 DAI in the Curve pool.</p><p><strong>Step 7,8:</strong> The borrower returned the 27,244 $DAI debt to AAVE and burnt the debt DAI token from the front-running.</p><p><strong>Step 9, 10, 11:</strong> The borrower returned the left 49,048,006 DAI to MakerDAO and withdrew 49,048,006 USDC.</p><p><strong>Step 12, 13:</strong> The borrower paid back 49,038,215.8275 USDC to AAVE to eliminate the debt generated in Step 3 and 4. (In the figure, step 12 is overlapped with step 3.)</p><p><strong>Step 14, 15:</strong> The borrower burned 127,056.749 aWETH, which is the total of the flash loan and its original position, and took out the WETH.</p><p><strong>Step 16:</strong> The borrower returned the flash-loaned 127,006.0842 WETH.</p><p><strong>Step 17, 18:</strong> The borrower swapped the left 9,790.1725 USDC for 8.0526 WETH in the Uniswap V2 pool.</p><p><strong>Step 19–24:</strong> The borrower took out the collateralized 77,015.34 DAI and 261,104.4678 USDC from AAVE and transferred them back to the MEV Bot.</p><p><strong>Step 25–27:</strong> The borrower exchanged the left 58.717445 WETH as ETH and transferred it back to the MEV Bot. At this moment, the MEV Bot has repaid all the debt of the front-running transaction and retrieved all the positions, eventually getting a revenue of 8.0525 ETH (58.7174–50.6649).</p><p><strong>Step 28:</strong> The MEV Bot transferred 57.514216 ETH to the <strong>from address</strong>.</p><p><strong>Step 29:</strong> The MEV Bot paid 1.203229 ETH as miner tips.</p><h2 id="h-profit-and-loss-summary" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Profit and Loss Summary</h2><p>In the end, the attacker profited 6.82 ETH, worth $8,267.</p><h2 id="h-asset-utilization-efficiency" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Asset Utilization Efficiency</h2><p>Let’s do some calculations.</p><p><strong>Attacker’s position:</strong> 50.6649 ETH($60,642), 77,015.34 DAI, 261,104.4678 USDC，$338,119 in total.</p><p><strong>Flash loan:</strong> 127006.0842 WETH = $153,907,408.</p><p><strong>Curve pool attacking fund:</strong> 49,065,460 DAI</p><p><strong>Collateral on AAVE:</strong> $338,119 + $153,907,408 = $154,245,527</p><p><strong>Left debt after the frontrun:</strong> 27,244 DAI</p><p><strong>Debt to Position rate</strong>: 27,244/338,119 = 8%.</p><p>This attack’s asset utilization efficiency is not ideal. The fund attacking the Curve pool was 49M DAI, accounting for 31.8% of the collateral amount: $154.2M. The flash loan was paid back by using the withdrawn WETH. After the front-running transaction, the left debt only accounted for 8% of the collateralized assets. At the end of the day, the flash loan was used as a bridging loan, not leveraged position.</p><p>But this attack has largely reached the maximum of the MEV, which can be inducted from the calculations below.</p><p><strong>The victim’s actual swap amount:</strong> 20,609,422.1640 USDC.</p><p><strong>The min_amount parameter set by the victim:</strong> 20,609,403.453298 USDC.</p><p>The difference is 18.71 USDC. And the attacker’s two swaps on the Curve pool increased by 9,790.1725 USDC as a surplus.</p><h2 id="h-the-attackers-mo-and-victim-history" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The Attacker’s MO and Victim History</h2><p>To manage attacks like this, the attacker is equipped with three skills:</p><ul><li><p>Possessing a thorough comprehension of the Curve liquidity pool’s algorithms.</p></li><li><p>Monitoring the changes in the mempools of Ethereum to locate the large stablecoin transaction orders on Uniswap, Curve, Dodo, and Balancer.</p></li><li><p>Developing smart contracts that can rapidly compute the cost and benefit of sandwich attacking and implement the actual squeeze.</p></li></ul><p>Wonder how much damage this attacker has done? We compile this year’s sandwich data <strong>till Oct 19</strong> and make the table below.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The last row of the table is the overall sandwich data during this period.</p><p>Here are some facts.</p><ul><li><p>13 MEV Bots have been used by this attacker, and only this attacker to squeeze whales 1,022 times till Oct 19, causing a victim loss of $2.93M, raking $1.44M profit for the attacker.</p></li><li><p>The total ROI of the attacker, 49%, is much higher than the general ROI of sandwiches, 21%. And 6 out of 13 of the MEV Bots have an ROI of over 50%. So this attacker is really good at what it has been doing.</p></li><li><p>The average victim loss per sandwich by the attacker is $2,866, almost 10 times of the overall average loss: $290.</p></li><li><p>The average profit per sandwich by the attacker is $1,410, 23.5 times of the overall average profit: $60.</p></li><li><p><strong>The average volume per sandwich is $20.1M, 33 times of the overall average volume: $608K.</strong> This is a clear indicator that the sandwiches done by this attacker have been targeting whales and their hefty swaps. Please be noted that a flash loan’s amount is not counted as the transaction’s volume.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0xdbf8c3a12ef282ead99233a790e4a1efd952a4fdae62e07d9eebbef7a08a3507,0x7ffbf936715c3fdfc9080c845115e28d6fb199ae3f03a52dd7b71e8802ad23e8,0x509f16888bb97af0f23f51bfb98f8485213d308d249c9039d70a505763643719">The earliest attack</a> can be traced back to May 30 of this year.</p></li></ul><p>We can also check the data from the victim’s side.</p><p>We have gathered <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.google.com/spreadsheets/d/1yCbZK2aHUzM4PoY1eP959YJTvExSZIUhKpaLXb7FgYs/edit?usp=sharing">a spreadsheet</a> of the victims suffering sandwich attacks from the attacker 0xf48. Here are some facts. The data’s deadline here is Oct 19.</p><ul><li><p>In total, there are 744 victims losing $2.93M to the attacker on 1022.</p></li><li><p>8 victims have been clasped 6 or more times by the attacker.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pro.nansen.ai/wallet-profiler?address=0xf9c241b6ad269ac8e8cdb24a540f6cce0ec9e0dd">The victim who suffered the most</a>, 22 times and a loss of over $170K, is a Uniswap V3 liquidity provider.</p></li><li><p>58 victims have been deprived of more than $10K by the attacker and its MEV Bots.</p></li></ul><p>You may want to find out how many of these 1,022 sandwiches involve flash loans. It’s a pretty big topic, and we will present you the results once finishing crunching the numbers.</p><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>It’s no doubt that the attacker 0xf48 has been taking to cooking sandwiches like a duck to water in these pools, in which, however, this duck poses severe threats to the whales doing trading. **We strongly advise whale trades to take special precautions while trading large amounts of assets by harnessing **<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.flashbots.net/flashbots-protect/rpc/quick-start/">**Flash Bots Protect RPC point **</a><strong>or </strong><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cow.fi/"><strong>CoW Swap</strong></a>. Just don’t go out there swimming naked.</p><p>Although the attacker has been using flash loans as aid, luckily, it does not utilize these loans’ full potential, at least not in the transaction this post analyzed employing a $153.9M flash loan.</p><p>The posts below demonstrate how searchers use flash loans for arbitrages.</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/p/how-to-use-dydx-flash-loan-for-arbitrage">How to use dYdX Flash Loan for arbitrage?</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/p/complicated-flash-loan-mev">Get Everything for Nothing: How to Use Flash Loans to Launch an Arbitrage?</a></p></li></ul><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/channel/UCQa9hWUD2vIYZrI3KsqgBWQ">Youtube</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[A Brand New Sandwich Bot That Could Empty LP’s Wallet]]></title>
            <link>https://paragraph.com/@eigenphi/a-brand-new-sandwich-bot-that-could-empty-lp-s-wallet</link>
            <guid>3CHscL3y5oyhS4ZrpINI</guid>
            <pubDate>Fri, 20 Jan 2023 03:28:55 GMT</pubDate>
            <description><![CDATA[Photo by Michael Dziedzic on Unsplash Here’s a sandwich trade from a genius. In the eyes of MEV searchers, this brilliant new strategy conducts risk-free arbitrage against the change in AMM’s swapping slippage. But in the eyes of the LPs, this may be a new attack vector enough to raise the alarm. LPs should carefully set checkpoint thresholds to avoid losing against such kinds of sandwich bots. On November 4, 2022, EigenPhi detected a BRAND NEW type of sandwich transaction: a sandwich bot squ...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8671776503feebd7f026b948d85cc8698ccd777013a24defe38c9768c9093b1f.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Photo by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://unsplash.com/@lazycreekimages?utm_source=medium&amp;utm_medium=referral">Michael Dziedzic</a> on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></p><p>Here’s a sandwich trade from a genius. In the eyes of MEV searchers, this brilliant new strategy conducts risk-free arbitrage against the change in AMM’s swapping slippage. But in the eyes of the LPs, this may be a new attack vector enough to raise the alarm. LPs should carefully set checkpoint thresholds to avoid losing against such kinds of sandwich bots.</p><p>On November 4, 2022, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/">EigenPhi</a> detected a BRAND NEW type of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.eigenphi.io/mev/ethereum/tx/0x8b82e58ba636c97681623a42e91683266ba7ca823855c352a3bb1b22d41824de">sandwich transaction</a>: a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich/attacker/0x00004ec2008200e43b243a000590d4cd46360000">sandwich bot</a> squeezed an add-liquidity <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/tx/0x2d38eeebe9deac4c6a180dc94f04b60c28773a829d432f38a2569817e574aae5">transaction</a>, which is weird according to our shared knowledge. Is it profitable to do so? Are there any restrictions? Unlike the previous <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/p/a-super-37-layer-sandwich-trade-including">article</a> on a HUGE sandwich trade, including 37 transactions, this bot shows a rather different and innovative strategy. And this article will take you to find out how DANGEROUS the current situation of AMM’s LPs is.</p><h2 id="h-a-summary-and-token-flow-chart" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">A Summary and Token Flow Chart</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>From this trade, the sandwich bot got a revenue of 0.922832 WETH. After subtracting the gas costs of both front-run and back-run transactions, the remaining profit was about 0.023346 WETH. The bot achieved a perfect risk-free arbitrage in a bundle of transactions without risk exposure to assets other than WETH.</p><h2 id="h-trading-steps" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Trading Steps</h2><ul><li><p><strong>Front-run Tx:</strong> The sandwich bot’s <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0x7944e84d18803f926743fa56fb7a9bb9ba5f5f24">from address</a> called its contract (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich/attacker/0x00004ec2008200e43b243a000590d4cd46360000">to address</a>) and swapped 21.477791967255461888 WETH to 458,875.769333569771126592 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0x0A41E6d4D4897E8Cec819ce7D10B2D7cDa61Dc94">SYC</a> through <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.eigenphi.io/mev/ethereum/lp/0x3048d907593f7c2e845ed174c8d6356b16e9b304">Uniswap V2: SYC 6</a>.</p></li><li><p><strong>Middle Tx:</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.eigenphi.io/mev/ethereum/sandwich/victim/0x3fd884f571512ae8f273992b25bdf32787cf5b36">Someone</a> added 15 WETH and 231,712.963735470964309251 SYC to the pool contract, Uniswap V2: SYC 6, and got 1,792.628826087529628699 UNI-V2 as a voucher. We call it a middle Liquidity Provider (LP) as follows.</p></li><li><p>**Back-run Tx: **The sandwich bot swapped 458,875.769333569771126592 SYC, as obtained in the front-run transaction, back to 22.400624171075764224 WETH.</p></li></ul><p>The following figure shows the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.eigenphi.io/mev/ethereum/eigentx/0x6d174d460f7fc2eec5d851d213c7ae39590bbada768ab40400a97e4fe16f4cdf,0x2d38eeebe9deac4c6a180dc94f04b60c28773a829d432f38a2569817e574aae5,0xc82ed6a0514000c42fa817dbc707f04542bdc7610330c05cbe8059dbd758e7ff?rankdir=BT">token flow graphs</a> of each transaction.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-a-quantitative-analysis-of-this-strategy" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">A Quantitative Analysis of This Strategy</h2><p>Why can the sandwich bot make a profit from an adding liquidity transaction? Where exactly does its revenue come from? Is it earning the maximum possible revenue? Who are the victims?</p><p>Next, we provide a detailed analysis of this strategy. And you will see that all liquidity providers of this pool bear the most loss compared to the pinched transaction’s user. What’s more interesting is that the sandwich bot may be possible to self-direct this trade without a strict prerequisite.</p><h2 id="h-constants-and-variables" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Constants and Variables</h2><p>Firstly, we list the constants and variables needed to calculate the revenue of the sandwich bot. As shown in the following table, we use a bunch of characters to denote the parameters corresponding to the pool’s status before, during, and after the sandwich trade. For each character, we use subscripts to represent the corresponding time and superscripts to represent the corresponding token. In this case, token0 means SYC, and token1 means WETH.</p><p>Here is the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/tx/0x2c8cdc653aa63c3b8c38bfaa89f6dca820e875ab80198941aef05073404e988e">Previous Swap </a>in the table.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Several constants are needed to conduct the calculation, and we can fetch them from event logs and transaction data. To understand the calculation logic here, you may require some background knowledge related to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0x3048d907593f7c2e845ed174c8d6356b16e9b304#code">Uniswap </a>V2’s and its <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0x7a250d5630b4cf539739df2c5dacb4c659f2488d#code">Router</a>’s contracts. For example, the logic in functions such as <code>swap()</code> and <code>addLiquidity()</code>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-constraints" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Constraints</h2><p>Secondly, there are also some constraints that the sandwich bot should obey.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-optimization-problem" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Optimization Problem</h2><p>Now we focus on the optimization problem. Given the liquidity pool’s initial status and the relative constant parameters, we formulate an attack vector into a constrained optimization problem concerning all the parameters defined.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>We can tackle this problem by utilizing either the analytical method or simulation.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-victims-in-the-dark" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Victims In the Dark</h2><p>Essentially, the bot’s revenue comes from a change in the slippage faced by a swap transaction with the same volume before and after adding liquidity. <strong>In other words, it is a risk-free arbitrage against the change in slippage.</strong> What about the LPs as counterparties? What are their PnL?</p><p>Based on the previous analysis, we continue calculating LP’s profit and loss in this trade. We consider two cases and define parameters as listed below.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-simulation-results" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Simulation Results</h2><h2 id="h-case-1" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Case 1:</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The lower right panel in the above figure shows that the parameters set by the sandwich bot correspond to the maximal loss other LPs bear.</p><p>Besides that, we can also find that beyond this threshold, the bot’s revenue comes mainly from the loss of the middle LP, and as more WETH is put into the pool by the bot, other LPs’ swap fee revenue will exceed their loss.</p><p><strong>From this point of view, the reversion checkpoint set by the middle LP provides critical protection.</strong></p><p>Moreover, the reversion checkpoint set by the middle LP cleverly coincides with the threshold corresponding to the maximum loss of other LPs. One wonders if this is a self-directed sandwich transaction; at least, it is far from being a loser**. **A sandwich bot can initiate both a sandwich transaction and an add-liquidity transaction, provided that the total p&amp;l is guaranteed positive.</p><p>From the lower left panel, it seems that the middle LP might even be able to profit from this trade under specific parameter settings, which is worth a careful check.</p><h2 id="h-case-2" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Case 2:</h2><p>If we suppose the middle LP is a separate individual ignorant of the sandwich bot, we should calculate its designated principal in another way. And the resulting PnL of the three kinds of participant is shown in the following figure.</p><p>In this case, the initial parameter set by the sandwich bot no longer corresponds to the maximum loss of other LPs, and the transaction will be reverted if it were true.</p><p>Case 1 is more likely to be consistent with the sandwich bot’s strategy.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>To simplify the analysis, none of the above calculations takes into account the actual cost of Gas fees paid by the bot, and the conclusion does not change because of this.</p><h2 id="h-will-a-self-directed-sandwich-trade-make-money" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Will a Self-directed Sandwich Trade Make Money?</h2><p>There are more things to think about and learn from this case. For example,</p><ul><li><p>Which kind of pool is suitable for making similar trades?</p></li><li><p>Can a sandwich bot implement the strategy without a third party initiating an add-liquidity transaction?</p></li></ul><h2 id="h-a-case-specific-inference" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">A Case-Specific Inference</h2><p>Finding the answers to the above questions requires one to generalize the model in this article. Before doing a systematic study, we can conduct a brief counterfactual inference to get a sense.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Considering the revenue and profit out of the front-run and back-run transactions are 0.922832 WETH and 0.023346 WETH, respectively, we can conclude that the sandwich bot cannot profit by mocking the middle LP.</p><h2 id="h-simulation-model" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Simulation Model</h2><p>One might ask, does this strategy depend on the pool and its state? Solving this question would require a generalized model and systematic learning. We first give an analytical framework here and share a more profound study in future reports.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>We list the effects of these six steps on pool in the following table.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>We highlight the key insights obtained from this case:</p><ul><li><p>A sandwich bot made a surplus of nearly 1 WETH by sandwiching an add-liquidity transaction in Uniswap V2’s SYC-WETH pool. The validator got most of its revenue through gas fees.</p></li><li><p>The new strategy can be regarded as a risk-free arbitrage against the change in slippage before and after adding liquidity to the pool.</p></li><li><p>Compared to the middle LP, other LPs bear much more loss in this case. The parameters set by the sandwich bot and the checkpoint constraints imposed by the middle LP cleverly coincide with the threshold corresponding to the maximum loss of other LPs.</p></li><li><p>LPs should carefully set checkpoint thresholds, such as the minimum liquidity to be added when issuing an add-liquidity transaction. Otherwise, they may bear a complete loss by such a kind of sandwich bot.</p></li><li><p>From our preliminary analysis, a bot cannot self-direct the entire trading steps without waiting for a third party’s add-liquidity transaction. But one needs to check this with a more systematic model.</p></li><li><p>And the strategy is quite sensitive to the pool’s initial status, and the bot must adjust its parameters to a specific range to get the most surplus from other LPs.</p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[MEV’s Impact on Uniswap]]></title>
            <link>https://paragraph.com/@eigenphi/mev-s-impact-on-uniswap</link>
            <guid>8YPFTr0QpGkUxKxFC0Qm</guid>
            <pubDate>Fri, 20 Jan 2023 03:21:17 GMT</pubDate>
            <description><![CDATA[MEV (Maximal Extractable Value) has already become a central topic in 2022, not very long since the original notion was proposed. MEV is also regarded as permissionless incentives in blockchains, extractable on a first-come basis. However, the attractive wealth opportunities in the dark forest are also hard-to-discover and require specialized capabilities. These facts raise concerns about public issues within Ethereum’s ecosystem, from the block congestion problem caused by Priority Gas Aucti...]]></description>
            <content:encoded><![CDATA[<p>MEV (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.flashbots.net/">Maximal Extractable Value</a>) has already become a central topic in 2022, not very long since the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/1904.05234">original notion</a> was proposed. MEV is also regarded as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.google.com/presentation/d/1qbNn04-fxok2ovIH4cY2VVUCKLyD1y9seEWLXPre1XY/edit">permissionless incentives</a> in blockchains, extractable on a first-come basis. However, the attractive wealth opportunities in the dark forest are also <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/@vbuterin/pbs_2021_12#/3">hard-to-discover</a> and require specialized capabilities. These facts raise concerns about public issues within Ethereum’s ecosystem, from the block congestion problem caused by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://research.paradigm.xyz/ethereum-blockspace">Priority Gas Auction</a> (PGA) to more critical security issues due to possible vulnerabilities among the validators and block builders.</p><p>AMM is one of the most relevant components, if not the most important one, during the extraction process of MEV. Users of AMM are unavoidably connected to MEV bots as a result of the transparency of mempools. This <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/fleupold_/status/1568146677281742848">tweet</a> directly reflects the trouble users may face. From another point of view, arbitrage bots play a vital role in improving the efficiency of price discovery in AMM markets. When exploring how MEV has impacted users on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/">Uniswap</a>, there are two aspects the stakeholders may consider necessary:</p><ol><li><p>To what extent is the impact on the Uniswap community and its users?</p></li><li><p>Which Uniswap users and liquidity pools are more likely to be involved?</p></li></ol><p>In this report, we find some interesting and inspiring conclusions and shed light on these questions. The results are based on a sample of observations and data analysis. While the maximal extractable value from the dark forest is hard to be calculated, we can calibrate the MEV market and its impact by observing the extracted asset values. In the following, we present an analysis focusing on three types of MEV bot activity targeting Uniswap V3’s liquidity pools.</p><h2 id="h-overview" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Overview</h2><h2 id="h-revenue-of-bots-activities" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Revenue of Bots’ Activities</h2><h2 id="h-a-comparison-of-total-revenue-scales" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">A Comparison of Total Revenue Scales</h2><p>One part of MEV bots’ revenue comes from the arbitrage gain when reducing the price spread between markets, which is also reflected in the impermanent loss of liquidity providers (LPs) and slippage loss of swap users. And another part of revenue comes from front-running users’ swap transactions and causing them to bear additional slippage losses. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://crocswap.medium.com/impermanent-loss-and-jit-liquidity-in-the-uniswap-eth-usdc-0-3-pool-8fc58c755d7">JIT bots</a> are unique concerning Uniswap V3’s new feature — <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/blog/uniswap-v3">concentrated liquidity</a>. They play the role of highly active LP and extract swap fee revenues from other passive LPs.</p><p>We intuitively measure the scale of extracted revenue by these bots and compare it to that of the commonly defined supply-side revenue of Uniswap V3.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d60867c374cb12458d06edb3c20265e7b356ac7479c96969c468b4e81eade16e.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Let’s look at the performances of different types of MEVs. During the period from January 1st to October 31th, 2022:</p><ul><li><p>Arbitrage bots have extracted at least $85 M from market price asymmetry involving Uniswap V3 pools.</p></li><li><p>Sandwich bots have extracted at least $47 M from Uniswap V3 pools’ swap users.</p></li><li><p>JIT bots have extracted $6 M from Uniswap V3’s swap fee revenue.</p></li><li><p>The total extracted value of these three types has crossed 25% of the supply-side revenue ( <em>i.e.,</em> LP’s revenue from swap fee), $540 M.</p></li></ul><p>Before the dark forest and MEV bots entered the public eye, LPs, swap users, and governance token holders played significant roles in AMM’s community. And TVL, volume, fee rate, slippage, liquidity mining yield were the primary indicators that mattered. Nowadays, from the perspective of the extracted value’s scale, MEV bots are one of the components that this community cannot bear to ignore.</p><p>The community has become more diverse and evolved into a more complex value transfer network. Given this pattern, MEV data has become a valuable asset for enhancing decision-making. One of the goals of this report and future work is to outline this network transparently. And tracking its evolution from time to time can help the related parties better understand how MEV affects the Uniswap community in the long term.</p><h2 id="h-monthly-revenue-trends" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Monthly Revenue Trends</h2><p>Let’s start by examining the monthly revenue data for this year.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/20a672b27b28faa09290702c9119161bf8f5c384e760740d5b49721728316cff.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>From the correlation coefficients below, there is no negative correlation between arbitrage bots’ and sandwich bots’ revenues and that of LPs (Source: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dune.com/messari/Messari:-Uniswap-Macro-Financial-Statements">Dune, @messari / Messari: Uniswap Macro Financial Statements</a>), which means there are no apparent interest conflicts between these agents. However, their revenues are more likely to fluctuate following the whole market in recent months.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b14c3509e0fc68192504a09fab4a9a97899085b32aac94155f8822a3f4b85dff.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Comparing revenue gain among different kinds of MEV bots, we find that arbitrage bots can extract more values than other types. The monthly revenue of JIT bots is one order of magnitude smaller than that of the other two types and has not yet shown a clear trend, which is also related to the fact that such opportunities are just emerging.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/14bf27d0367a3d6200a12406c4c380f3b0cb559424c80c37615c417abbe7636d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-volume-contribution" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Volume Contribution</h2><p>Volume contribution to Uniswap from these MEV bots is another way to calibrate the impact on the macroscopic level.</p><p>From the histogram below, we can see in most arbitrage observations; tokens are swapped between Uniswap V3 pools and other venues.</p><p>Therefore, to investigate the volume contribution of arbitrage events, one cannot simply sum up the volume of arbitrage and compare it with Uniswap V3’s total volume, in which volume contributed to other venues will also be counted. Instead, a more convincing way is to consider the volume that occurred directly at Uniswap V3 pools. The same logic is also applied to calculating volume contribution by sandwich bots.</p><p>JIT bots don’t need to issue swap transactions; they add and remove liquidity to extract the swap fee. However, we can measure the volume of targeted swap transactions in a JIT event to study the impact on swap users.</p><p>We will explore it in future reports.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b62a8a694f3cdc0addcd6ac09c5eb78dc74b81090a920ac275c6d12219b0a61e.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-frequency-analysis" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Frequency Analysis</h2><h2 id="h-daily-count-of-observations" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Daily Count of Observations</h2><p>We can also detect how frequently these bots spot MEV opportunities by observing the daily count of observations. Although the following results present an observed minimum set, comparing the data along a timeline or bot type is still reasonable.</p><p>The plot below shows a significant increase in arbitrage bots’ activities starting from May this year. In contrast, the observation frequency of sandwich bots remained at a stable level. Apparently, arbitrage bots are more likely to find MEV opportunities than other bots.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8f66dd15b2f2c4d83458c1b0327a214104d42215aff6a1e92220826d113bc47e.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-daily-count-fluctuation-and-trends" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Daily Count Fluctuation and Trends</h2><p>The fluctuation of observation frequency positively correlates with the absolute price change of representative crypto assets in terms of arbitrage and sandwich activities. Here we present an example of ETH’s 7-day price change percent (a moving averaged result of the absolute value, source: historical close price from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://coinmarketcap.com/currencies/ethereum/historical-data/">coinmarketcap.com</a>). And the correlation coefficient between the moving averages is around 0.43 for arbitrage bots and 0.60 for sandwich bots. The result shows to a certain extent that the occurrence of trading opportunities is related to the intensity of market price fluctuations, which is quite reasonable. The structural growth of arbitrage bot’s activities since May could also be related to other factors, such as a reduction in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/chart/gasprice">average gas price</a> in recent months, which is not the focus of this report.</p><p>Meanwhile, JIT bots have seen an increasing opportunity trend in recent months.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b1fb549d40d310fda0f1e071241c802013aa97e68e1cf2ce0ef38526c24d3084.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-profit-of-observations" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Profit of Observations</h2><p>MEV bots’ actual profit left in their pockets is another parameter to predict how attractive the MEV market will be for outsiders in the future. Evaluation in this aspect requires more careful and granular processing of the data for two reasons:</p><ul><li><p>Merely relying on the on-chain data for an accurate answer is not enough because there is survivorship bias. For example, maybe a bot that looks profitable from on-chain transactions still suffers from many failed transactions’ costs or other hedging costs off-chain.</p></li><li><p>The process of converting token prices into US dollars may strongly affect the evaluation of bots’ profitability. This is because every penny counts when the price error is close to the difference between revenue and cost, which is the profit data we want. Besides, the realizable liquidity of long-tail assets is also a factor to be considered.</p></li></ul><p>We are working on optimizing the calculation of token prices. The results below are based on the latest version of our price index.</p><p>From the daily profit distribution, we can see that arbitrage and sandwich bots gain an average profit on most days and have a few lucky days to make a lot of money. For example, on August 1st, the arbitrage bots’ daily profit reached over $4.47 M. On that day, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/eigentx/0xb55d4267a3565fdc8bada2638f97ed0bb31aa40bf8d4b304086dbdc1ca7d7844?allow-different=0&amp;disable-reverse-debt=0&amp;hide-inter=0&amp;rankdir=TB&amp;show-net-asset-flow=0">a simple spatial arbitrage</a> contributed 71.6% ($3.20 M). From the daily profit percentage of JIT bots, they seem to make more money than arbitrage bots sometimes.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/9a9f2ae89c76005cc8c87e4f84d8ec65f6a26e9a317cf1e96934bc109c725dc8.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Both the profit and loss of a single observation are in line with the fat tail distribution. Compared to arbitrage bots’ profitability, sandwich bots and JIT bots follow the same distribution attributes, yet the maximal profit in a single observation they can extract is at least one order of magnitude smaller. From the perspective of the on-chain transactions, MEV bots will also suffer considerable losses in a single action.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/1d82324e0d4c55e95f273817d934fb24f55692b31cb34a0af827c33a124a9c8c.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-cost-of-observations-and-miner-extracted-value" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Cost of Observations and Miner Extracted Value</h2><p>For miners to package their transactions timely, MEV bots participate in the gas fee auction market, and the fierce competition drives up the cost of gas fees very high. Institutions such as Flashbots have launched marketplaces for off-chain auctions, and some of these auction costs are converted into miner tips in the form of coinbase.transfer(). These two parts of the cost constitute the main explicit cost for MEV bots to participate in the MEV market. Using it as a percentage of revenue, we can understand the level of profit margins for bots and how much MEV value is being extracted by miners.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6147055f344558ef42843d09cb6c7df18a3a0eca74b4f099b8593c60d823c4c0.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The average transaction cost of bots (gas fees and tips to miners) has a downward trend overall. However, the cost of sandwich bots is higher than the other two kinds, and the proportion of revenue allocated to miners has grown significantly, approaching 90% in October.</p><p>The proportion of revenue arbitrage bots paying miners has a downward trend, below 50% in October. The percentage of miner extracted value from JIT bots is the lowest, which is consistent with the less competitive situation they are engaging in right now.</p><p>In total, more than half of the extracted value actually flows into the miners’ pockets.</p><h2 id="h-impact-on-pools" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Impact on Pools</h2><p>We can also observe which liquidity pools are more likely to be involved in MEV activities. Let’s break down this issue into feature analysis and correlation analysis tasks. In this report, we present a general result as a first step.</p><p>We merge Uniswap V3 pools’ <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.uniswap.shippooor.xyz/">metadata</a> and the parameters of MEV activities grouped by pool address, as shown in the following picture. Since the profitability parameters of arbitrage bot involve both Uniswap V3 pools and other venues, we put that aside and focus on the frequency of bot activity, tthe profitability of sandwich bots and JIT bots, and the situation of the involved swap users.</p><p>The results show that over 80% of sandwich bots’ profit comes from the top 10 pools sorted by trading volume. However, only 20% of sandwich activities occur in these pools, which means pools with large trading volumes are easier for sandwich bots to extract value from, but swap users of other pools may still be sandwiched frequently. This fact is also validated by the distribution of the number of unique swap users that suffer from sandwich activity in each pool. A few pools are also not involved in sandwich activities during the time range we observed.</p><p>Regarding JIT bots, they seem to be more focused on the top 10 pools sorted by trading volume. While 84% of profit was extracted from these pools, 56% of JIT activities also happened here.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/89a4c736535be8092744e195b1aee46305e640c165d24aa17d44ce0619e7b197.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Pools with a fee tier that equals 0.0005 or 0.0001 are more likely to be extracted in terms of arbitrage bots’ average activity frequency in these pools. Pools with fee tier 0.0005 suffer mostly from sandwich activities. JIT activities also happen mostly in pools with a fee tier 0.0005.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/1061989e4f5039c0049840f375ac7fb14674481c3a09865fce331e5d13f00cb7.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>We also present the histogram of several parameters grouped by pool address. The result also obeys fat tail distributions, which means a small bunch of pools is involved much more than the average level.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/5755979c77b5c1b5b39965690a7cd83b508d3929f1f654b2a80b711ed2576f1c.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Compared to other venues, Uniswap V3 pools related to crypto assets, USDC, WETH, and USDT, are the hottest pools that MEV bots like to interact with. You can view statistics of hot liquidity pools sorted by trading volume or trading volume change percentage in MEV activities on our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/pools/hot">website</a> in real time.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/4e5db40c786f8561a786fa04613f8c417b32cd1f35109f0d25d927a69ce18f6b.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-participants" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Participants</h2><p>Interaction relationship among MEV bots and other users is also an attractive topic. The following table and figure compare the number of different agent types involved in MEV activities in our observing scope. From the right panel, we see an increasing trend of unique swap user addresses that can benefit from JIT activities.</p><p>However, by counting the number of unique bot contracts and involved users’ addresses, it’s hard to comment on how many entities are behind these addresses since different addresses may belong to one entity. A vivid interaction network mapping transaction relationships of these addresses can help understand this question better, which is not covered in this report.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b7129d6167cc51afd4800c6a7b8b46c0b6599cd24dfaae5403b3f3da94bd00e3.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2e701de38d1f83fd57aa5b3506db1101caf3b0438eea90be942fc8803b168e50.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-arbitrage-bot" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Arbitrage Bot</h2><h2 id="h-arbitrage-bot-leaderboard-top-20" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Arbitrage Bot Leaderboard (Top 20)</h2><p>The following plots show the top 20 arbitrage contract addresses sorted by total profit and total activity count, respectively. The relationship between total profit and total activity count shows a positive relationship with a ceiling value of profit a bot can maximally extract.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/35f49297c2d8c2bd9e6c501fb55de21c6f7ce3ebf63ae37d0ea1968c78507859.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/e9ebaa77e07db97b137f56e5d8be5638aff2ff8016a3989049f61ac2c580fe8c.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-frequency-of-arbitrage-patterns" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Frequency of Arbitrage Patterns</h2><p>We can observe the arbitrage transactions’ structure by counting the number of venues involved and the percentage of Uniswap V3 pools involved. The top 10 possible combinations show that <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Arbitrage#Spatial_arbitrage">spatial arbitrage</a> involving one Uniswap V3 pool and another venue is the most common pattern. The subsequent two common patterns are triangle arbitrage involving one or two Uniswap V3 pools.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/1ce4ca7ee94bb8694812192b032dbb2064af12cc3690363719277901ee1a41c7.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Another interesting finding is that there are also many arbitrage opportunities among Uniswap V3 pools alone. A single arbitrage transaction can also involve more than 100 venues (for <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/tx/0xd350fcce80d6aab3220b6bb2911e8bb55090d0f261f6cfde987c4433a6ec8cdd">example</a>)</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/70606d4f7e90aeb9a6271315e172dba9f8d1f98a1cd507be45191fc977a1ce2d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-arbitrage-bot-as-a-user-itself" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Arbitrage Bot as a User Itself</h2><p>Arbitrage bots, as also a kind of swap user of AMM, suffer from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/Defi-Cartel/salmonella">taxed token contracts</a> other than severe gas fee campaigns. The following data and graph show that while most profitable arbitrage transactions do not involve the taxed tokens, it does not rule out that some particularly excellent bots can find wealth in taxed tokens. There is a subtle trend that more profitable arbitrage bots are likely to be involved in fewer percentage of taxed tokens.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/eb0cdb602d82d5bf852f7df69b70f4921905dec95976e24a7ca07404a3b9343e.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/413f23bea502306441af20d6e56b009d429d78578886a0d51011da8467c35a2b.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-a-break-down-of-profitability" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">A Break Down of Profitability</h2><p>We also put the distribution of profitability parameters below for the reference of interested parties.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/35d25e653ed5c9ee0bc15e33cc46c391fc1b8f32498898d56e857eb8d82d8460.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-sandwich" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Sandwich</h2><h2 id="h-sandwich-bot-leaderboard-top-20" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Sandwich Bot Leaderboard (Top 20)</h2><p>The following panels show the top 20 sandwich contracts’ addresses sorted by total profit or total activity frequency respectively. The relationship between total profit and total activity count shows that most profitable bots are more capable of successfully submitting transactions more than 100 times this year.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b76643a8822f06e2bd111ceb1710decfe97350361e3bee17edb1e6bf90c9ba64.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/3ca6ee7b7a7653a5cf1019e554a72a70bfc9803087ea1dbe17874d90260f9b85.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-swap-users-get-sandwiched" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Swap Users Get Sandwiched</h2><p>In most cases, there is only one swap user sandwiched in a single sandwich activity. But sometimes, the sandwich bots can front-run up to 4 swap users’ swap transactions in one shot within our observation scope.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/499a51b6f86afc206b7e75f2be4002cfb73398a2d8448bf468e4aa1260301a83.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>From the top 20 sandwich victim data below, the most suffering swap user was involved in over 300 sandwich transactions this year.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/9dc45bfef92577f1e7efeaacdecfcc71057eb52537a4f3424af0b2065724796c.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-sandwich-activities-in-venues" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Sandwich Activities in Venues</h2><p>From the top 10 exploited contracts, which can be viewed on our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/mev/ethereum/sandwich">website</a> in real-time, we see that Uniswap pools are mostly involved in sandwich activities compared to other venues. This is partly due to the vast transaction volume of these Uniswap pools, which is an advantage for sandwich bots.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f8f11ac1120bcca048256f0df7985ce9800e6b5f34c506623ff559c9b9a94bb9.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-a-break-down-of-profitability" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">A Break Down of Profitability</h2><p>We also put the distribution of profitability parameters below for the reference of interested parties.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b21f5c1621703c44014b738cbe91e66908abe9ae8eade654c3283fe738dcd3a6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-jit" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">JIT</h2><h2 id="h-jit-bot-leaderboard-top-20" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">JIT Bot Leaderboard (Top 20)</h2><p>We only observe 6 JIT bots by detecting unique “to address” in JIT bots’ add liquidity transactions. Two of them haven’t gained profit yet.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/4aea49ae8f7d81a3b6cb06b5433aebb74ac4d3ab63e270673ccfa70e86e1f23d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6f17ed035b382d8249e81176358d86ab811f56cbcb04a3aed1a91375c6bf48ed.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-swap-users-benefit-from-jit" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Swap Users Benefit from JIT</h2><p>JIT bots can provide a large amount of liquidity to targeted swap users, making it an advantage for them to have smaller slippage loss. From the top 20 beneficiary data below, many swap users are enjoying this new feature frequently. We calibrate the benefit by simulating possible slippage the swap user may bear without JIT bots’ activity in each observation. From the histogram of both simulated slippage and actual slippage as presented below, a clear shift from larger slippage rates to smaller ones can be seen. During the calculation, we also find that there are negative slippage values in a few cases. By checking the reason manually, we find that in some JIT bots’ transactions that add liquidity, they will perform reverse swap transactions for some reason, which brings a more favorable price to the next swap user.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/eb6f88552b8a82e11ad04d2f6eb08f5bec155f55a68278aef92e6c67e365020a.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>From a list of top 20 beneficiary below, we see quite a few swap users are already enjoying this new feature frequently.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/5db58b5f08c1b45c9d0c2ade1b325ef317700534b064a2e62959503ffd11b2c3.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-a-break-down-of-profitability" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">A Break Down of Profitability</h2><p>We also put the distribution of profitability parameters below for the reference of interested parties.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d22ee4dd59183ae1ebe39aa5321ccd3778e56f1bb1376c4cd4dd423297e9ce92.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>From the above analysis, we can see that robots have become an integral part of the AMM community that cannot be ignored. Understanding the transaction relationship between MEV bots and other entities can help stakeholders better understand the long-term impact of MEV on AMM.</p><p>In this report, we characterize the above relationship from different perspectives and draw some interesting conclusions based on a solid data source and data analysis:</p><ul><li><p><strong>Revenue</strong> — From the scale of revenue extracted by bots, we see that arbitrage bots have extracted at least $85 M from market price asymmetry involving Uniswap V3 pools. Sandwich bots have extracted at least $47 M from swap users in the form of slippage loss. JIT bots have extracted $6 M from Uniswap V3’s swap fee revenue. The total revenue of bots accounts for 25% of LP’s revenue. However, there are no apparent interest conflicts between arbitrage bot, sandwich bot, and LPs. Their revenues are more likely to fluctuate following the market in recent months. The monthly revenue of the JIT bots is one order of magnitude smaller than that of the other two types and has not yet shown a clear trend.</p></li><li><p><strong>Frequency</strong> — Arbitrage bots are more likely to find trading opportunities compared to other bots. A significant increase in arbitrage bots’ activities can be seen starting from May this year, whereas the observation frequency of sandwich bots remained stable. Trading opportunities are positively correlated to the intensity of market price fluctuations. JIT bot is seeing an increasing trend of trading opportunities in recent months.</p></li><li><p><strong>Profitability</strong> — MEV bots gain an average profit on most days and have a few lucky days to make a lot of money. Both the profit and loss of a single observation are in line with the fat tail distribution. The maximum profit sandwich bots can get is one order of magnitude smaller than that of arbitrage bots, due to fewer trading opportunities, more cost, and more fierce competition between bots. JIT bot is still in the early stage.</p></li><li><p><strong>Cost</strong> — The average transaction cost of bots has had a downward trend in recent months. The cost of sandwich bots is higher than arbitrage bots, and the proportion of revenue allocated to miners has grown significantly, approaching 90% in October, compared to a downward trend reducing below 30% in terms of arbitrage bots. In total, more than half of the extracted value flows into the miners’ pockets.</p></li><li><p><strong>Pools</strong> — Over 80% of sandwich bots’ profit comes from the top 10 pools sorted by trading volume. However, only 20% of sandwich activities occur in these pools. A few pools are also not involved in sandwich activities during the time range we observed. JIT bots seem to be more focused on the top 10 pools sorted by trading volume with 84% of profit being extracted from these pools and 56% of JIT activities also happening here. Pools with a fee tier that equals 0.0005 or 0.0001 are more likely to be extracted by arbitrage bots. Pools with fee tier 0.0005 suffers mostly from sandwich activities and JIT activities. The fat tail distribution of parameters grouped by the pool also shows that a few pools are involved much more than the average level.</p></li><li><p><strong>Participants</strong> — There seems to be an increasing trend of unique swap users that can benefit from JIT activities. The slippage data from both actual swap transactions and simulation also validates this point. There are other protocols also offering strategic liquidity providing bot services to LPs who are seeking more yield. Their strategies mainly allocate liquidity in a narrow range and adjust the tick intervals to track market price based on quantitative indicators such as Bollinger Bands. Compared to these kinds of strategies, JIT bots are trying to solve the same problem in an innovative and more capital-efficient way. It is worth considering for related parties such as AMM protocol designers to directly provide similar features, which can connect swap users and LPs in a new way while improving user experience and enhancing LPs’ revenue.</p></li><li><p><strong>Bots</strong> — We also list the top 20 bot contract addresses sorted by total profit and activity count, respectively. The relationship between total profit and total activity count shows a positive correlation with a ceiling value of profit a bot can maximally extract. Regarding how arbitrage bots treat taxed tokens, most profitable arbitrage transactions do not involve the taxed tokens. But it does not rule out that there are some particularly excellent bots that can find wealth in taxed tokens. In most cases, there is only one swap user sandwiched in a single sandwich activity. But in some cases, the sandwich bots can front-run up to 4 swap users’ swap transactions in one shot within our observation scope. The most suffering swap user was involved in over 300 sandwich transactions this year.</p></li><li><p><strong>Transaction Pattern</strong> — Through observing the arbitrage transactions’ structure, we find that spatial arbitrage involving one Uniswap V3 pool and another venue is the most common pattern. The following two common patterns are triangle arbitrage involving one or two Uniswap V3 pools. There are also many arbitrage opportunities among Uniswap V3 pools alone. And a single arbitrage transaction involving more than 100 venues can also make a profit.</p></li></ul><h2 id="h-methodology" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Methodology</h2><h2 id="h-data-source" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Data Source</h2><p>The above analysis is based on the raw block data fetched from the full Ethereum node we built. The data range covered is from block number 13916166 (include) to 15871479 (include). We decode the raw data to get the fine-grained data field we need.</p><p>To compare certain parameters with the overall market situation and Uniswap V3’s macroscopic parameters, we adopted data from third parties as listed below:</p><ol><li><p>ETH’s historical close price from coinmarketcap. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://coinmarketcap.com/currencies/ethereum/historical-data/">https://coinmarketcap.com/currencies/ethereum/historical-data/</a></p></li><li><p>Uniswap V3’s daily meta data from dune@messari / Messari: Uniswap Macro Financial Statements. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dune.com/messari/Messari:-Uniswap-Macro-Financial-Statements">https://dune.com/messari/Messari:-Uniswap-Macro-Financial-Statements</a></p></li><li><p>Uniswap V3’s meta data from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.uniswap.shippooor.xyz/">https://www.uniswap.shippooor.xyz/.</a> （Chain: Ethereum, Dataset: Pools）</p></li></ol><h2 id="h-how-do-we-identify-bots" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How Do We Identify Bots?</h2><ul><li><p>We consider a transaction to be a collection of asset transfers, and we use a set of rules to see if an MEV activity has happened by assessing the outcomes of these transfers. The rule of thumb is that there is more than one transfer (or swap) in the transaction, and the trader ends up with a surplus.</p></li><li><p>To identify different types of MEV activity, we collect observations obeying our heuristic rules for each type in the current stage, and we continue enhancing our algorithms according to false negative or false positive detected by comparing the sample results with those from MEV-inspect each day.</p></li><li><p>In this report, we identified three types of MEV activity with Uniswap V3 pools involved. The total number of Uniswap V3 pool addresses we covered is 8837, including those from failed factory transactions, as compared to 8767 pools listed in the third-party data sources. The total number of arbitrage, sandwich, and JIT observations is 663889, 90291, and 13020 respectively.</p></li></ul><h2 id="h-how-do-we-calculate-profit-and-cost" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How Do We Calculate Profit and Cost?</h2><ul><li><p>We are constantly optimizing our price index algorithm. At present, we directly equate USDT, USDC, and DAI to 1 USD. For mainstream assets with relatively good liquidity (ETH, WETH, WBTC), the AMM and on-chain oracles can provide a relatively reliable quote source. With these mainstream assets’ prices settled down, we further calculate the prices of other tokens based on the swap ratio at the time of calculation.</p></li><li><p>We only consider on-chain costs for each transaction detected. The calculation process is summing up the gas fee and the coinbase.transfer() value (if there is any) of each transaction and converting the result to USD based on the ETH’s price.</p></li></ul><h2 id="h-disclaimer" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Disclaimer</h2><p>The information contained in this post (the “Information” has been prepared solely for informational purposes, is in summary form, and does not purport to be complete. The Information is not, and is not intended to be, an offer to sell, or a solicitation of an offer to purchase, any securities. The Information does not provide and should not be treated as giving investment advice. The Information does not take into account specific investment objectives, financial situation or the particular needs of any prospective investor. No representation or warranty is made, expressed or implied, with respect to the fairness, correctness, accuracy, reasonableness or completeness of the Information.</p><p>We do not undertake to update the Information. It should not be regarded by prospective investors as a substitute for the exercise of their own judgment or research. Prospective investors should consult with their own legal, regulatory, tax, business, investment, financial and accounting advisers to the extent that they deem it necessary, and make any investment decisions based upon their own judgment and advice from such advisers as they deem necessary and not upon any view expressed herein.</p><p>*We are open to discussion, please feel free to contact us via contact@eigenphi.com.</p>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[Farewell to the $1 Trillion Market During the Night of Liquidation]]></title>
            <link>https://paragraph.com/@eigenphi/farewell-to-the-1-trillion-market-during-the-night-of-liquidation</link>
            <guid>I86MF0SrgUS0lX2MlnUK</guid>
            <pubDate>Tue, 14 Jun 2022 23:01:52 GMT</pubDate>
            <description><![CDATA[Photo by Alice Pasqual on UnsplashKey Takeaways:The market’s collapse is caused by the chain reaction of stETH depeg and Celsius’s user asset freezing.With $200B evaporated, people need better tools to identify the systematic risks hidden in DeFi.An investigative and interactive data platform backed by a consistent and coherent data model framework is essential for the public to scrutinize the potential peril in the market.For the first time in over a year, crypto’s global market cap dropped ...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6ae86e42ba41275736c91692e6376df7756e2bfc6195a3e311817138d367e202.jpg" alt="Photo by Alice Pasqual on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Alice Pasqual on Unsplash</figcaption></figure><p><strong>Key Takeaways:</strong></p><ul><li><p>The market’s collapse is caused by the chain reaction of stETH depeg and Celsius’s user asset freezing.</p></li><li><p>With $200B evaporated, people need better tools to identify the systematic risks hidden in DeFi.</p></li><li><p>An investigative and interactive data platform backed by a consistent and coherent data model framework is essential for the public to scrutinize the potential peril in the market.</p></li></ul><hr><p>For the first time in over a year, crypto’s global market cap dropped below $1 trillion as $200 billion was wiped off.</p><p>Last night, on AAVE and Compound, around one thousand borrowers’ assets got liquidated. The total amount reached about $100M, resulting from recent market volatility.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2bbcd73478f49996db51766c2042207cab13f6d134b5b2f349372ea8e72ba510.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>During the last seven days, ETH has <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://coinmarketcap.com/currencies/ethereum/">dropped over 37%</a>. Meanwhile, over the previous 24 hours, the rate of stETH to ETH had fallen to the lowest point of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://coinmarketcap.com/currencies/steth/steth/eth/">0.9268 ETH</a>.</p><p>The downward trend has been severe during the last few days, as shown in the charts below captured from Coinmarketcap.com.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ea20a0fdd0f2aea679d2dbeba8d93e04300a5967665c11a85fd858b8cbccbe85.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/582680958bd92ba74c1ba7793176567f6ead0f8ced8b6df53d9cf3d19a510841.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The crash set off a chain reaction, pun intended.</p><p>Celsius Network, which has over 1.7 million customers and was valued at $3.5 billion last year, managing <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/Kr00ney/status/1536182145982599168">$11.8B as of May 17</a>, is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/CelsiusNetwork/status/1536169010877739009">freezing all withdrawals and transfers</a>. How serious is this? Here is the opinion of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/lawmaster">Larry Cermak</a>, the VP of Research at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.theblockcrypto.com/">The Block</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8232d787a68fcff5dac3451d9e3639a213d907148245a2408ae9ce4b3db79cbd.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>At the moment of this writing, according to Larry Cermak, the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zapper.fi/bundle/0x8aceab8167c80cb8b3de7fa6228b889bb1130ee8%2C0x1cedc0f3af8f9841b0a1f5c1a4ddc6e1a1629074%2C0x87a67e7dc32fdc79853d780c6f516312b4a503b5%2C0xeee27662c2b8eba3cd936a23f039f3189633e4c8%2C0xc131701ea649afc0bfcc085dc13304dc0153dc2e%2C0x84e1f49a6b65882c7365b6a775999cfcb481f22f%2C0xcf7a68127285c7c6c8546ce51b89d7e820f6d294%2C0x4f6742badb049791cd9a37ea913f2bac38d01279%2C0xdbaa0bcec419c47a75efbb93c745aebae3fe9c7b%2C0x3b6543ebe26824bd8156a103063f56ce50f88080%2C0xef22c14f46858d5ac61326497b056974167f2ee1%2C0x3be6d80fdce385358f5762998882efc282df7b9a%2C0x845cbcb8230197f733b59cfe1795f282786f212c%2C0x0fc8415a9b8f535e9f48ba245b1b18a37fb03a90%2C0x8665d75ff2db29355428b590856505459bb675e3?label=Celsius+Wallets+Combined&amp;id=0x7d3a40822eb2701f5d08e3a24b0bfefbd173e1ae&amp;addresses=0x8aceab8167c80cb8b3de7fa6228b889bb1130ee8%2C0x1cedc0f3af8f9841b0a1f5c1a4ddc6e1a1629074%2C0x87a67e7dc32fdc79853d780c6f516312b4a503b5%2C0xeee27662c2b8eba3cd936a23f039f3189633e4c8%2C0xc131701ea649afc0bfcc085dc13304dc0153dc2e%2C0x84e1f49a6b65882c7365b6a775999cfcb481f22f%2C0xcf7a68127285c7c6c8546ce51b89d7e820f6d294%2C0x4f6742badb049791cd9a37ea913f2bac38d01279%2C0xdbaa0bcec419c47a75efbb93c745aebae3fe9c7b%2C0x3b6543ebe26824bd8156a103063f56ce50f88080%2C0xef22c14f46858d5ac61326497b056974167f2ee1%2C0x3be6d80fdce385358f5762998882efc282df7b9a%2C0x845cbcb8230197f733b59cfe1795f282786f212c%2C0x0fc8415a9b8f535e9f48ba245b1b18a37fb03a90%2C0x8665d75ff2db29355428b590856505459bb675e3">top 15 wallet addresses</a> owned by Celsius still have over $1.55 billion in different assets, among which 74% of all $wBTC on Maker is in Celsius’s Maker vault, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/TheDeFiDan/status/1536347682377068546">according to @TheDeFiDan</a>. Celsius added more BTC as collateral to avoid being liquidated, which is $544.4M in total, lowering their liquidation price of wBTC to $16,852.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/c55e524d4cc844a5479038d98c8131bf0d77b9b8a7811a17971e5e1e8284d111.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/AceDevAndQA/status/1536368100031209473">According to aQua</a>, before the top-up, once the price of BTC reaches its 200WMA (Weighted Moving Average), which is $22.4K, the liquidation mechanism would be triggered for Celsius and many other borrowing protocols, which would further worsen the market crash, cascading into another round, or the worst-case scenario, rounds of rounds liquidations, as the result of the chain reaction.</p><p>Now that Celsius has some room to breathe, the crypto world in general as well, but not for the thousands of borrowers whose over-$113M assets got liquidated during the last 24 hours. Especially last night, at 20:46:34 EST, the price of BTC was $22,325.2, lower than its 200WMA.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/25716ed2dbb9406737b5f602722ac700bd8860265fef596820e8ce6d4172c848.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-how-to-address-the-volatility" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How to Address the Volatility?</h2><p>The most ironic part is that this systematic risk presenting itself in front of us is precisely what drove people to build DeFi to avoid. Yet here we go again. Celsius, as one of the biggest CeFi in the DeFi world, has been in the eye of the brooding storm, which gives rise to some philosophical-level of questions:</p><ul><li><p>Do the profit-seeking and risk-avoiding essences of (certain) human beings naturally breed centralized institutions like Celsius, which eventually thwart the utopia of decentralization?</p></li><li><p>Or is this just a big speed bump reminding us to be careful while we are still driving in the right direction?</p></li></ul><p>WE the BUIDLERS are glass-half-full people. Otherwise, we would not reach where we are now. I would assume, therefore, that you, as I am, have a strong belief in the future and regard the current predicament as a problem we can and are going to solve.</p><p>Part of the problem is data fragmentation. <strong>Assets flow freely across protocols, not the data among different protocols with varied dimensions.</strong> As a result, a daily trader has no capable tools with proper methodologies to integrate all the information. Whatsmore, most of the current presentation of the data provides no interaction for users to carry out an exploratory analysis. As a result, most of the existing data tools are insufficient for investors to make informed decisions.</p><p>To facilitate users making well-informed choices, in April, we released the Liquidation module showing the comprehensive data and detailed asset flows of the liquidation transaction. Behind the scene is our consistent and coherent data analysis framework combining structural, behavioral, and network analysis.</p><p>Let’s walk through our liquidation data of yesterday to reveal what’s been happening during the Night of Liquidation, hopefully, the last, not the first in the foreseen future.</p><h2 id="h-an-inspection-of-the-night" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">An Inspection of the Night</h2><p>Around 22:00, we noticed the abnormality in our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/liquidation">Liquidation module</a>. By then the summary of the 1-day data showed the amount as $100M. When we sent out the first tweet to notify our Twitter audience at 22:10, the amount grew to $125M. $25M in 2 minutes.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/5d185987f9549bc0a50b06e7604db465777f818a0396f3af14fd25f7c234ab41.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The number kept climbing in the next hour and finally died down after 23:00. At 23:10 EST, it was stable around $165M.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/12c46d29d4437cae6fdfa24e8b94e3ff132a8384f1c315994570738f3f9a5330.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-what-were-the-biggest-liquidations" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">What were the biggest liquidations?</h2><p>Here are the top 10 largest liquidations of last night, ranging from $3M to $5.2M. All the liquidated assets are WETH, and 9 out of 10 happened on Compound.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/04c000114c87d1b7ace14e9eec2f5bf46bb219c791e927158c71e5cbdcd693f3.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-how-many-assets-were-liquidated-regarding-different-protocols" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How many assets were liquidated regarding different protocols?</h2><p>The majority of last night’s deal occurred on AAVE v2: over $87M. Almost $68.4M was on Compound. And $1M shy was done on AAVE v1.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/cfcff62409eb9cc134a65364728d6f23a7c029a9568a43fe24cac65cf6679ca1.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-what-about-assets" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">What about assets?</h2><p>Here are the top ones: $120M WETH, $40M WBTC, over $3M stETH, and over $1.35M LINK.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/4876292ef3651967f1ec6aac553f2be8cd6f24f1a4489130576068e158abefb2.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-whos-the-top-liquidator-of-the-night" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Who’s the top liquidator of the night?</h2><p>This is<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/liquidation/liquidator/0x5e767aa6204ece873c7d9405c4bca49cd3e0bf39"> the top dog</a> that liquidated nearly $69M and reaped about $850K on 320 transactions from 257 borrowers. Its footprints covered both AAVE v2 and Compound and spread among 11 assets.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6ce0ee4ef1be8282ab828c1f5086a40c65933cca5fa3f22e4a36cb567e4f0c43.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>You can also examine its transaction distribution on the page, showing here how many liquidations are distributed in which profit range.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/aaedb23446718cfc8565607d0da86e57f438b7602060ab40626a113b990b945d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>What about its cost? The gas price chart would give some idea.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/9436308b7b5cdb81e73fe9d0df018151d963e4a9526d67aa73e2b88320a32cc2.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-which-is-the-most-profitable-liquidation" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Which is the most profitable liquidation?</h2><p>According to the profit leaderboard below, it was done by the top dog, who earned a profit of $368K under the cost of $67. The 2nd belonged to it as well.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/1d2743f9aaae15e99ddf403febd4152e8cb093c9c0f3d3f11e4d4eba9687223f.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-wonder-how-the-most-successful-one-gets-done" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Wonder how the most successful one gets done?</h2><p>Click the row, and you can inspect the detail, including debt asset and its amount and the asset flow in the chart. We can tell that the liquidator repaid the debt with over $4.9M worth of USDT and received over 244K cETH as a return.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/336d558ab36281679e16dc731500e3659e27a171f86b288ce5bc4d0a45a6315f.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The profit leaderboard above also displays the top 10 liquidators, whom you can examine one by one, and the top liquidated borrowers regarding liquidation amount.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b7e2682c018473bac5b4f31729fe10a878484e5e4635ec3fc94f428bc7ea0379.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>All these data cover the big picture of the liquidation market, the performance of different protocols, the liquidator details, and the liquidation asset transfers. In addition, different levels of data are integrated to leverage users to conduct exploratory analysis on the eventful night with interactive approaches.</p><h2 id="h-how-to-help-the-1-billion-user" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How to Help the 1 Billion User?</h2><p>The collapse is not the first time and definitely won’t be the last time. Even with all the backlashes, the user base of Bitcoin is still <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.prnewswire.com/news-releases/blockware-intelligence-publishes-new-report-bitcoin-user-adoption-301564823.html">predicted to have 1 billion users by 2030</a>.</p><p>How can we help this 1 billion crowd? First, the industry needs to provide capable tools for the community to enable them not only to identify the systematic risks but also to discover potential sustainable investments. Failing to do so would drown users in myriad types, quantities, and dimensions of data and keep them trapped forever in the dark forest of DeFi before they swear off cryptos.</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi Official Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi MEV Alert Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[To Avoid Suffering Over $308M Loss, Start from Crossing the Data Gap]]></title>
            <link>https://paragraph.com/@eigenphi/to-avoid-suffering-over-308m-loss-start-from-crossing-the-data-gap</link>
            <guid>HH8uk2nprX3Mx9HOItjz</guid>
            <pubDate>Wed, 08 Jun 2022 13:22:30 GMT</pubDate>
            <description><![CDATA[Photo by Zuza Gałczyńska on UnsplashKey Takeaways:● Flash Loan is the sharpest double-edged sword in the DeFi world. ● To suppress its ugly side, the public has to obtain a clear view of its transactions and connections with other DeFi businesses, which was harder to achieve because of the data gaps between protocols. ● EigenPhi’s Flash Loan module bridges the data gaps and reveals the behaviors of Flash Loan stakeholders.April 30, 2022, Saddle Finance, $11M. April 30, 2022, Fei Rari, $80M. A...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/eda9dfa91fb4d57215434d21c6686cd905e29f188b03044705821763becd1fe9.jpg" alt="Photo by Zuza Gałczyńska on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Zuza Gałczyńska on Unsplash</figcaption></figure><h2 id="h-key-takeaways" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Key Takeaways:</h2><p>● Flash Loan is the sharpest double-edged sword in the DeFi world.</p><p>● To suppress its ugly side, the public has to obtain a clear view of its transactions and connections with other DeFi businesses, which was harder to achieve because of the data gaps between protocols.</p><p>● EigenPhi’s Flash Loan module bridges the data gaps and reveals the behaviors of Flash Loan stakeholders.</p><hr><p>April 30, 2022,<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://rekt.news/saddle-finance-rekt2/"> Saddle Finance</a>, $11M.</p><p>April 30, 2022, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://rekt.news/fei-rari-rekt/">Fei Rari</a>, $80M.</p><p>April 28, 2022, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/DeusDao/status/1519574219419496449">Deus Finance</a>, $13.4M.</p><p>April 17, 2022, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://rekt.news/beanstalk-rekt/">Beanstalk</a>, $182M, the largest yet of its type.</p><p>April 13, 2022<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://rekt.news/elephant-money-rekt/">, ELEPHANT MONEY</a>, $22.2M.</p><p>Causing a total loss of $308.6M in April alone, all of these attacks on DeFi protocols have the same MO.</p><p>According <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.wsj.com/articles/this-billion-dollar-crypto-loan-is-easy-to-get-but-gone-in-a-flash-11651985089?mod=Searchresults_pos2&amp;page=1">to Wall Street Journal</a>, the attack on Beanstalk had a unique advantage.</p><blockquote><p><em>A $1 billion loan was taken out with no collateral, no proof of income, and no identity verification. The loan had to be repaid in less than a second, but that was all that was needed to steal tens of millions of dollars.</em></p></blockquote><p>Yep, it’s Flash Loan–a cheap, instant, and anonymous form of financing based on cryptocurrencies–that induces such humongous damages.</p><p>The biggest capital source for Flash Loan,<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/aave/sneak-peek-at-flash-loans-f2b28a394d62"> AAVE suggested </a>its purpose is to build “a more resilient ecosystem with liquidations”:</p><blockquote><p><em>By removing the need to hold any capital, we aim to democratize the liquidation market and enable faster and easier liquidations. The safety of the whole ecosystem will be better and the risk of “bad debts” much lower.</em></p></blockquote><p>Upon seeing the ugly of Flash Loan and being told the good heart behind it, how can we find out what a badass it is to prevent the later malicious intentions? We need to cross data gaps between different protocols to achieve this goal. These gaps have hindered DeFi users from recognizing risks and obstructing the market from generating and broadcasting effective signals.</p><p>Welcome to<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/flashloan"> the Flash Loan module</a> released by EigenPhi, which is <strong>built on a coherent and unified data model to help you bridge the data gaps by integrating multi-dimensional information.</strong></p><p>Let’s dive in.</p><h2 id="h-unveil-the-big-picture" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Unveil The Big Picture</h2><p>First, you can read the trends in the chosen timeframe, 1 day, 7 days, or 30 days. We will use 7 days as the context for the stuff below.</p><p>The Summary section tells you that 244 Flash Loans have occurred during the last 7 days. We also show how many transactions embed these Flash Loans. Sometimes, a transaction can have more than one Flash Loan.</p><p>The total amount of the 244 Flash Loans and the fees required to implement these loans can be found here too, which involves 29 borrowers and 10 assets.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8939c2292e9a463b6e927f602b120d7a8c52cd386728f1671089ea89a766ec2d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The following chart illustrates the trend of the last 7 days, indicating the daily loan amount split by Aave v2 and dYdX. The bar on Jun 1 tells us that 65 Flash Loans happened that day, over $12M on Aave V2 and almost $2.876M on dYdX. And the lowest data point happened on Jun 4.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/de2c383a1aa600c3581153321ce4d2de8d078ad0d8f439a1a78aa6cd1d718e07.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>You can switch the time window to 30 days to get the bigger picture.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/87663687c6d8dd39e44b4626a81d3d4038ba32d44e3cf70a4d28cac8d82be60c.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>May 12, the day UST depegged and LUNA crashed, is the day with the highest Flash Loan amounts and frequency.</p><h2 id="h-uncover-the-hidden-behaviors-with-interactive-exploratory-analysis" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Uncover The Hidden Behaviors with Interactive Exploratory Analysis</h2><p>Let’s switch back to 7 days and check the top Flash Loans.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/5e9866f2f0398efdd0440575dd085c9af12b1d1f8f1ba3139de53dc83cf7125f.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Some essential information regarding the transaction is shown here, including time, purpose, amount, fee, transaction address, borrower address, loaned asset, and protocol used for the loan.</p><p>The most important field here is, of course, Purpose. According to the founder of AAVE, you can leverage Flash Loan in use cases like:</p><p>● <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/what-is-arbitrage">Arbitrage</a></p><p>● Collateral swaps</p><p>● Interest rate and currency swaps</p><p>● Self <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/glossary/liquidation">Liquidation</a></p><p>● Leverage aggregator</p><p>Usually, the purpose we listed can be attributed to these cases, and we connect the data here with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/">Arbitrage Scan</a> to draw a more in-depth image.</p><p>Take this Flash Loan, for example.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/74a48f80e6375d712fbc30c4cc841aabbef4ab7238a98a4e5a985b6bf7a9f904.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Its purpose is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/arbitrage-types/spatial-arbitrage">spatial</a> arbitrage. Click the row, and you will be directed to the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/tx/0x4b2dd4bdc4111f5031b0fcd6cc90ee7d11a52caf6cc99b7eb42d7b1d2e00189d">arbitrage transaction detail page</a>, which reveals that the same contract ends with 7475 used the loaned $USDC to buy $DAI from UNISWAP, swapped them with $USDC on CURVE-FI, and earned almost $10K eventually as profit.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6520d74b2ad9370d5f63b8e2e33e6ec7b2c64e0cb05439a2d19a34cd93fd60b6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In essence, our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/flashloan">Flash Loan module</a> integrates the fragmented data and uncovers the cloaked behaviors.</p><p>We also broadcast such behaviors to the public like this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/EigenPhi_Alert/status/1534309753270190080">tweet alert</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/37db47afb5cccd06f9141c63f0547311a99f1a17180c57a430bf177e83d80316.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Following the Top Flash Loan section is the Latest Flash Loan part. This is the real-time Flash Loan happening on Ethereum now. And you can navigate to the pages you are interested in to find out more.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/5a581284f34da91d1fc7092d417287e5c1fcb11d551d7bf1921e2254db43b375.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Several DeFi protocols are supporting Flash Loan on the market. EigenPhi covers the two mainly used ones for now. We show you the amount, fees, Flash Loan count, transactions count, the protocol’s borrowers, and the assets it provides.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2612e09e159d9e9e99f7338df9cf94985404ca2883c054653b5157544d744647.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>These features regarding Flash Loan are just the beginning. In the incoming days, you will be able to examine a protocol’s details, such as the top 10 assets, top destinations, etc., with the same level of data and information interaction and connectivity, all of which can benefit your wise investment decisions.</p><p>Stay tuned!</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi Official Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi MEV Alert Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[The Biggest Hidden Danger to Your Asset Swaps In the Turmoil of the Market]]></title>
            <link>https://paragraph.com/@eigenphi/the-biggest-hidden-danger-to-your-asset-swaps-in-the-turmoil-of-the-market</link>
            <guid>WZ32aXdh8NJMFlaaQO7q</guid>
            <pubDate>Thu, 02 Jun 2022 23:17:07 GMT</pubDate>
            <description><![CDATA[Photo by Thula Na on UnsplashEven in a bearish mood, the DeFi market still has been welcoming new yield farming protocols every day. With new protocols come new capitals; with new capitals derive new volatility. The following chart illustrates the last 7 days’ arbitrage performance expressed in trading profit.To everyday traders, the profit of arbitrages is not as substantial as trading volumes because we care less about how much money searchers made than how much money they targeted. Moreove...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/09d55c6a14d9286364c45c3d8fad3b16fc37ea8853e889699a0d268f054e9c3c.jpg" alt="Photo by Thula Na on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Thula Na on Unsplash</figcaption></figure><p>Even in a bearish mood, the DeFi market still has been welcoming<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://rugdoc.io/calendar/"> new yield farming protocols every day</a>. With new protocols come new capitals; with new capitals derive new volatility.</p><p>The <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/">following chart</a> illustrates the last 7 days’ arbitrage performance expressed in trading profit.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/4ec0edad7cb20ae4c2e36e16b9075550086942eff0528856aa8f57c2ace68869.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>To everyday traders, the profit of arbitrages is not as substantial as trading volumes because <strong>we care less about how much money searchers made than how much money they targeted.</strong></p><p>Moreover, when you split the last 7 days’ trading volume by type, the following chart unveils the unknown danger we face during each and every token swap.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/47b72eb59b5eb81f855c564a6a6621d6dbc08e51020eb01e0917a0d516b1cb37.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The danger is in the purple part of the chart: Sandwich arbitrage, the most cloaked, shady, and damaging MEV thing in the DeFi world. And they are effectively out of the public eye without constant monitoring and exposure.</p><p>According to the volume chart, Sandwich arbitrage has taken up the majority of Ethereum arbitrages, which means it’s highly likely that your token swap is in the scope of sandwich searchers without any protection.</p><p>In this article, we will examine what Sandwich arbitrage is, how it impacts the market, and how to be equipped to protect yourself.</p><h2 id="h-sandwich-module" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Sandwich module</h2><p>Since the beginning, EigenPhi has been devoting itself to building a healthier and more robust DeFi ecosystem. In <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/">EigenPhi Classroom</a>, you can read <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/arbitrage-types/sandwich-arbitrage">our explanation</a> of the mechanism of Sandwich arbitrage. We also showed you <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/eigenphis-methodologies/how-eigenphi-identifies-arbitrage-transactions/recognizing-cross-transaction-sandwich-arbitrage">our approach</a> to identifying a Sandwich arbitrage.</p><p>Moreover, we released the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/sandwich">Sandwich module</a>, providing a systematic analysis of Sandwich arbitrage. Here are the features of this module.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/78d09c336695184fe09ebfd2f272dcc0bcd116d7b352744a2df6ec69e1909f46.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><ul><li><p>Summary displays some key metrics of the sandwich arbitrage market, including transaction count, total profit, total cost, number of attackers, and number of victims.</p></li><li><p>Top Ten Exploited Contracts demonstrates the top 10 protocol contracts attacked by Sandwich arbitrage in percentage, ranked by numbers of Sandwich arbitrage. According to the chart above, Uniswap V3, 1inch v4, and even the Metamask’s router are all exploited by Sandwich arbitrage.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f7d70e43375a81765316368a7bb7e9680da3287b44d04739120383c4427c8a6a.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><ul><li><p>Profit Leaderboard lists the top 10 sandwich arbitrages ranked by profit in the chosen time duration. You can also sort them using profit, cost, and revenue. Click the address, and then you can examine the details of the arbitrage.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/3bbd4cf7f657cf921bffbe75e8219e063712f6191f320d0105feb29587cdf5bc.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><ul><li><p>Attacker Leaderboard shows the top 10 sandwich arbitrage contracts ranked by the total profits through sandwich attacks during the chosen time frame.</p></li><li><p>Victim Leaderboard lists the top 10 sandwich arbitrage victims ranked by loss. Click the victim address, and then you can find out the detail of it, including the top attackers and the attacking history chart.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d715a697b40921753a24cada97b542ef3c7d094e4a2d1131ee0f2e11c5fa4993.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><ul><li><p>Real-time Attack is a real-time sandwich arbitrage trading view with profit, cost, and revenue. Click the arbitrage hash address to examine the token flow of the sandwich attack.</p></li></ul><p>We also used the data to generate<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.notion.site/Sandwich-Arbitrages-Daily-Report-c32bc40bc0934957ad7edf2c1d307917"> the Sandwich arbitrage Daily Report</a> to give you an overview of the attack and its specifics on a day-to-day basis. Please read <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/p/wanna-understand-the-front-running?s=w">this article</a> to find out the daily impact of Sandwich arbitrage on the market.</p><h2 id="h-have-i-been-a-victim-of-sandwich-attack" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Have I Been A Victim of Sandwich Attack?</h2><p>If you have been a crypto player for a while, you might be interested in finding out if you have been attacked. We released <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/sandwich/search">this little kit</a> to help you check.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/501b99b70624ece67cfb7ec522e7d570f407a5308c81cbd802a207374f7323c6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Put your wallet address in the search box, and you will be able to find out.</p><p>Whether or not you are a victim, it’s critical to use protection, like wrapping up your deal. Luckily, the open-source project Flash Bots provides a “Flashbots Protect” tool to protect your transaction from Sandwich arbitrage. All you need to do is some simple Metamask configuration. Please read <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.flashbots.net/flashbots-protect/rpc/quick-start">their quick start </a>for details.</p><p>To conclude, if you want to share with your friends about the Sandwich attack, here are the things you could recommend.</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/arbitrage-types/sandwich-arbitrage">EigenPhi Classroom’s explanation</a> on Sandwich.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/eigenphis-methodologies/how-eigenphi-identifies-arbitrage-transactions/recognizing-cross-transaction-sandwich-arbitrage">How do we recognize Sandwich</a>?</p></li><li><p>EigenPhi’s <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/sandwich">Sandwich module</a>.</p></li><li><p>Our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.notion.site/Sandwich-Arbitrages-Daily-Report-c32bc40bc0934957ad7edf2c1d307917">​​Sandwich arbitrage daily report</a>.</p></li><li><p>Our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/sandwich/search">Sandwich victim history checker</a>.</p></li></ul><p>If there is more information you’d like to find out about Sandwich arbitrage, please leave your comment. You can also contact us via the channel below.</p><p>Stay Away From Sandwich Arbitrage and Stay Safe!</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi Official Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi MEV Alert Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[Wanna understand the front-running 🥪 MEV day by day? Introducing Sandwich Arbitrage Daily Report!]]></title>
            <link>https://paragraph.com/@eigenphi/wanna-understand-the-front-running-mev-day-by-day-introducing-sandwich-arbitrage-daily-report</link>
            <guid>CaywSiFCS0Wjq81c0nfh</guid>
            <pubDate>Tue, 31 May 2022 15:17:11 GMT</pubDate>
            <description><![CDATA[Photo by Campaign Creators on UnsplashSandwich arbitrages are the most cloaked, shady, and damaging MEV thing in the DeFi world. Sandwich arbitrages are effectively out of the public eye without constant monitoring and exposure. Take this victim transaction, for example. The trader had wanted to swap 2.115 million USDT for USDC. However, the attackers detected the deal and mobilized over $8.4 million worth of WETH and DAI for the Sandwich arbitrage. In the end, the attackers’ cost of the arbi...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/e7744415ae781d6226d1bd32366d0a58ac8db117c022fbc16dd2ad22bf71dce2.jpg" alt="Photo by Campaign Creators on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Campaign Creators on Unsplash</figcaption></figure><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/arbitrage-types/sandwich-arbitrage">Sandwich arbitrages</a> are the most cloaked, shady, and damaging MEV thing in the DeFi world. Sandwich arbitrages are effectively out of the public eye without constant monitoring and exposure.</p><p>Take <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/tx/0xa6813d8ce3266f83d6eb31dd765f60bcd4856662f56bbd8aa895c9cbe7cb39a2">this victim transaction</a>, for example. The trader had wanted to swap 2.115 million USDT for USDC. However, the attackers detected the deal and mobilized over $8.4 million worth of WETH and DAI for the Sandwich arbitrage. In the end, the attackers’ cost of the arbitrage was USD 2,463 worth of gas fees and reaped $48,692 worth of WETH as a profit.</p><p>MEVs with MO like these are happening every minute in DeFi. To raise awareness, EigenPhi released the<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/sandwich"> Sandwich arbitrage module</a> to unveil the Sandwich arbitrage on Ethereum from head to toe, including summaries, leaderboard, attacker and victim details, and real-time attacks. Furthermore, we produce <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/sandwich/search">a little tool</a> to help you check if you have been sandwiched. And here is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/eigenphis-methodologies/how-eigenphi-identifies-arbitrage-transactions/recognizing-cross-transaction-sandwich-arbitrage">the methodology </a>of how we recognize Sandwich arbitrage.</p><p>Now we introduce the latest approach to mitigating the risk of Sandwich arbitrage: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.notion.site/Sandwich-Arbitrages-Daily-Report-c32bc40bc0934957ad7edf2c1d307917">Sandwich Arbitrages Daily Report</a> by EigenPhi.</p><h2 id="h-sandwich-arbitrage-trends-of-last-24-hours-and-7-days" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Sandwich Arbitrage Trends of Last 24 Hours and 7 Days</h2><p>Like our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.notion.site/Auto-Daily-Report-2f6bc48486e04c5199ab6159d3ff0e05">Arbitrage Daily Reports</a>, the Sandwich Daily report is generated automatically from the Ethereum on-chain data between 7 AM EST yesterday and 7 AM EST today.</p><p>Let’s open <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.notion.site/Sandwich-Arbitrages-Daily-Report-05-31-2022-by-EigenPhi-08b794e2930d4f6d8fa551f733abaa88">today’s report</a>.</p><p>The first chart of the report shows the trend for the last 24 hrs.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/00f1bad2f77d606d7a70f01d24c2b440fc8f7fb44eb3b7d46a73ba417310c824.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The stacked columns of each hour indicate the subtotal revenue of arbitrages that happened during the period, split into profit, the blue bar, and cost, the red bar. And the orange line depicts how many Sandwich arbitrages happened as the right axis measured them.</p><p>We can tell that from 14:00 to 15:00 was the hungriest time for Sandwich searchers.</p><p>Of course, you can read the exact number of the indicator when you move the cursor to the column and the line.</p><p>The following chart displays the trend of the last seven days with the same logic, except for the horizontal axis showing the seven dates.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a4833ce5d225535aef5f8e046f456ad742323c17720b945277cbd4092b61a29b.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>What’s the change from yesterday compared to the day before? The following table gives you the answer. It contains the total count, attackers’ EOA count, victims’ EOA count, total profit/cost/revenue, total ROI, and the same data regarding arbitrages with profit over 1K USD, and MEV-BOT, all of which let you know the changing rate regarding yesterday’s report.</p><p>The data in the table beneath tells us that the overall profit increased 77.7% compared to yesterday. We also read that most of the gain was from Profit &gt;1K USD arbitrages, whose profit is $179,976, increased 96.2%, which eventually resulted in the ROI of this category reaching 594.7%.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8a53421f2b3dbf054afab9a5a5bbcf3a1b609ef37ab897fe03c4124a56b2c5e2.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-what-were-the-sandwich-searchers-capable-of-yesterday" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">What Were the Sandwich Searchers Capable of Yesterday?</h2><p>The three charts illustrate the overall Sandwich arbitrage capabilities in the market using percentile distribution metics.</p><p>It might be a bit confusing at first look. So let’s start with the table below to understand the concept:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/38db14b724bbe60a5910e181a3241df13bf88045bdac377b8f675f8e2cd84aae.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The table shows that the lowest 50% of transactions’ profit is mostly less than 2.66 USD; the 90% of transactions’ profit is mostly less than 92.91 USD; about 95% is less than 222.88 USD, and the highest profit is 33,074.98 USD.</p><p>Here is the table that exhibits the Total Sandwich Arbitrage Profit/Cost/Revenue Distribution:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d816690b2c42e0b4c7dc077f974175deb5c72661130066f74b146933aa982503.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The first three rows of the table should now be more apparent. However, it’s important to remember that <strong>the same column’s data in no way belongs to the same transaction.</strong></p><p>We calculate the profit, cost, revenue, and ROI distribution rankings separately. For example, a transaction’s cost is $42, ranking 50th. But its profit could be $20, more than the 50th profit, $1, and less than the 90th profit, $43, and vice versa.</p><p>The ROI in the fourth row is also calculated independent of the data in the same column. It also shows the overall ROI distribution. So, therefore, the best ROI is 139897.7%, and the 95th one is 274.0%, etc.</p><p>With the knowledge of the data in the table, let’s examine the chart again.</p><p>In order to make the data more understandable, the chart’s vertical axis is scaled in logarithms.</p><p>The first one exhibits the <strong>profit</strong> percentile distribution of the overall Sandwich arbitrages V.S. profit&gt;1K USD arbitrages V.S. MEV-Bot arbitrages marked on Etherescan.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/686e98bbd08fac26dc781421690357ad87b699fe1f441b17180a841231a09fba.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>It shows that at the 50th percentile, profit&gt;$1K transactions’ profit is more than that of Total and MEV-Bot, which is obvious. And at the 90th and 95th percentile, the profit of Total and MEV-Bot are about the same, more or less around $100, which we call tell from the data in the tables below:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7af07bc80c897bc04761f37fdde29b03e5142f6bea94f8b005cda7383cda700c.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/17dc9fb9b867192cca7d8bb55e8fac4f58ba0af74e1e9ef457582c773cfbc588.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In terms of the profit at the 100th, The Total’s line meets the Profit&gt;$1K’s line, because the most significant gain is from the Profit&gt;$1K‘s category.</p><p>It wouldn’t take too much time to figure out that eventually, in all three charts, at least two lines will meet at the 100th percentile, one of which belongs to the Total category.</p><p>We can also read that the line of Profit&gt;$1K is above the another 2, which generally means the profit of this category is more than the other 2.</p><p>Now we can move on to the cost distribution chart.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/54d5ec69a16c8d13554f76129158de482a22a96bbeff60f5edfc2e8c553ed073.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The costs of Total and MEV-Bot at different percentiles are close, which both are less than that of Profit&gt;$1K. And of the two, MEV-Bot usually spent a bit more money than other searchers of Total.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/4c8df680f64ddeaebfa30e27df0afcacc746d46b0c6b4890a4865ffecc0313ca.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Regarding revenue distribution, the highest revenue came from the Profit&gt;$1K category, not the MEV-Bot one.</p><p><strong>Remember that the same percentile’s data does not necessarily belong to the same transaction, except for the 100th one.</strong></p><p>The first three rows of the table should now be more apparent. However, it’s important to remember that <strong>the same column’s data in no way belongs to the same transaction.</strong></p><p>The following three tables show the data in the distribution chart in a different dimension: a summary of profit, cost, revenue, and ROI of a specific category.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7cdad9d916fe8b587551cf7e4055ae3a219c324e45108d34117af210be26b3e1.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b2f8357956abb87695c27ed8c910c28516f3e2c2cf9bf08556e801b27bbbb073.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/90d40883f5a16794d50c5cade030f80076eacbcfa95aa4ea8af05a1139353a9f.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-the-5-most-delicious-sandwiches" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The 5 Most Delicious Sandwiches</h2><p>After the distribution comparison charts and tables, the following table displays the top 5 most profitable Sandwich arbitrages. Tokens involved in the arbitrage are in one column. Clicking the hash addresses of the arbitrage will lead you to the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/contract">contract detail</a> page, showing different arbitrage types’ performance, profit leaderboard, favorite pools, tokens, and profit distribution.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/44a59749aebf0442d832acbe6b5161b2af1d5fa4787f79793acfde1077832528.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-watch-out-when-using-these-protocols-and-routers" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Watch Out When Using These Protocols and Routers!</h2><p>The following section is the Top 10 Exploited Contracts by arbitrage count.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a83469d155e64ac2bb6dd1dcd194674328cf340d9df0f9043b7dcf6df702fe5a.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>We analyzed all the on-chain transactions and summarized the chart and table. Most contracts here are the routers and proxies of different protocols. Traders use these to implement their swaps which get sandwiched unconsciously. If you want to trade with a considerable amount, this chart will help you decide which DEX and protocol are most likely being exploited.</p><p>The table displays the percentage of router or protocol accounted for regarding arbitrage count. How many Sandwich arbitrages have happened during the last 24hrs is shown here, too, as the subtotal profit and cost of these arbitrages.</p><h2 id="h-top-attackers-and-victims" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Top Attackers and Victims</h2><p>Following are the top 3 attackers and victims of the timeframe. The attacker table shows how many arbitrages the attacker had done and related amounts. The victim table examines the loss of the victim and the times of being attacked. All the addresses in both tables will take you to the details of either the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/sandwich/attacker-detail">attacker </a>or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/sandwich/victim-detail">victim</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ed63f2d6a80fc0d97475de4dfce08cd47199126c73ebbc6d649725c69c8e2a85.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-dyor-on" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">#DYOR on 🥪</h2><p>That’s it for the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.notion.site/Sandwich-Arbitrages-Daily-Report-c32bc40bc0934957ad7edf2c1d307917">Sandwich Arbitrages Daily Report</a>. However, if you want to do more analysis like this, you can <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.google.com/spreadsheets/d/156fapjTIhDNCqjr02w-1zXvTfbMmYdDWraXS8JNLDA4/edit#gid=704766022">download the historical data</a> of the Ethereum Sandwich Arbitrage Daily Report, starting from Jan 2nd, 2022. You can find the download link at the start and the end of every day’s report.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/bb784a28453b0d4e58d46dda552db72fa98e6a33cf97363c124c2c895d2d86b2.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/75903d69eb5dfb628edff6d9821d5eb56e6217073310f4a20f9e541e316b66c5.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>If you think we are missing some data you need, please feel free to leave your comment or contact us via the channels below. Any feedback is highly encouraged and welcomed!!</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi Official Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi MEV Alert Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[Why You Should Figure Out the Structures of Transactions on DeFi?]]></title>
            <link>https://paragraph.com/@eigenphi/why-you-should-figure-out-the-structures-of-transactions-on-defi</link>
            <guid>5BAmME14ItOrqmvglf4F</guid>
            <pubDate>Sat, 28 May 2022 23:30:11 GMT</pubDate>
            <description><![CDATA[Photo by Kaleidico on UnsplashAccording to Bloomberg, the increase in crypto adoption globally in the past 12 months reached 881%, all of which can be traced back to the dawn of a new world of finance — DeFi, born in 2020. It’s fundamentally different from the traditional financial world, which is under intense regulation to guarantee the fidelity and authenticity of the data and the underlying assets. However, failing to do so by the incumbent institutions became the midwife of Bitcoin and, ...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/c8c5601399738676bebc8217c62b6df6d22e6aaf71fd801a7f3eaf336f599f64.jpg" alt="Photo by Kaleidico on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Kaleidico on Unsplash</figcaption></figure><p>According to Bloomberg, the increase in crypto adoption globally in the past 12 months reached 881%, all of which can be traced back to the dawn of a new world of finance — DeFi, born in 2020. It’s fundamentally different from the traditional financial world, which is under intense regulation to guarantee the fidelity and authenticity of the data and the underlying assets. However, failing to do so by the incumbent institutions became the midwife of Bitcoin and, eventually, DeFi. And people are embracing it as the alternative to the disappointing conventional system.</p><p>Since its birth, openness and accessibility have been the hallmark of DeFi to keep the conventional rigged mechanisms at arm’s length. As a result, assets and products have been issued arbitrarily, resulting in the exponential growth of the data. CNBC reported that, in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.cnbc.com/2022/01/06/crypto-scammers-took-a-record-14-billion-in-2021-chainalysis.html">2021, the total crypto trade volume is $15.8 trillion, and DeFi transaction volume grew 912%</a>.</p><p>With hope comes chaos. Being lack of regulation on the ever-increasing data gives rise to fraud and forgery. Also, in 2021, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.cnbc.com/2022/01/06/crypto-scammers-took-a-record-14-billion-in-2021-chainalysis.html">crypto scammers took a record of $14 billion, </a>among which Cryptocurrency theft managed $3.2 billion, which rose 516% from 2020, scams climbed 82% to reach $7.8 billion, and rug-pull fraud scored $2.8 billion.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d7594541c43e12ff962aaf13712f7800291bc936552ed350b6c5f63d55a55219.jpg" alt="Photo by pina messina on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by pina messina on Unsplash</figcaption></figure><p>Besides security concerns, when prepping for the trading, investors frequently need to answer questions like:</p><ul><li><p>Where are the alpha opportunities?</p></li><li><p>What is the expected ROI?</p></li><li><p>Which suspicious assets, vaults, and contracts do I have to avoid?</p></li></ul><p>During the trading, investors are interested in:</p><ul><li><p>When is the best time to begin?</p></li><li><p>How to implement a successful strategy?</p></li><li><p>How much is the reasonable cost to trade without spending too much?</p></li><li><p>How to avoid being the victim of front-running?</p></li><li><p>When to stop?</p></li></ul><p>All these questions need accurate information with precision extracted from the colossal volume of data.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/853b3b9d16aea211adfbd6d0475f338d96d31ce8842b6edd1ee228752d9e33b5.jpg" alt="Photo by Alina Grubnyak on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Alina Grubnyak on Unsplash</figcaption></figure><h2 id="h-2-biggest-concerns-that-havent-been-properly-addressed" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">2 Biggest Concerns That Haven’t Been Properly Addressed</h2><p>Facing the problems caused by data and information overloading, DeFi’s new world urgently needs new methodologies to dynamically parse the market message, warning, and alert in real-time. At the current phase, two aspects are the biggest concern.</p><p>1. to discern the veritable liquidity data;</p><p>2. to identify the malicious intention;</p><p>both of which require active and brisk actions, which is an ongoing process.</p><p>The existing products exhibit shortcomings that impede a cohesive solution, including:</p><ul><li><p>Being short of consistency on statistics.</p></li><li><p>Lacking bona fide liquidity data.</p></li><li><p>Missing network analysis, which is essential to unveil the connections among multiple transaction structures.</p></li><li><p>Missing holistic risk evaluation, which is required to dissect the cross-protocol liquidity.</p></li></ul><p>In EigenPhi’s view, the reason these products fail to deliver is a lack of an in-depth understanding of DeFi’s transaction structures, which should be the foundation of all DeFi data processing.</p><h2 id="h-3-pillars-of-defi-structure-behavior-and-network" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">3 Pillars of DeFi: Structure, Behavior, and Network</h2><p>As we mentioned <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/p/how-eigenphi-identifies-arbitrage?s=w">in the last post</a>, s<strong>tructures, behaviors, and networks are the invisible pillars of the DeFi that you have to figure out if you want to be a conqueror of the new world.</strong></p><p>As the pioneer of the new generation of DeFi data analysis platforms, EigenPhi adopts <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/p/how-eigenphi-identifies-arbitrage?s=w">methodologies </a>focusing on starting from a thorough inspection of transaction structures formed by Smart Contracts.</p><p><strong>First, we meticulously dissect and present the asset transfer mechanisms among liquidity pools, EOAs, and protocols in an easy-to-understand manner. Then, based on this solid premise, EigenPhi proceeds with behavior and network analysis to enable you to price the liquidity and recognize the risks, eventually taking in not only the story behind the curtain but also profits and gains from their assets.</strong></p><p>It’s a challenging path to take, but an essential one that EigenPhi has been working on since the beginning. And we are the only team in the market capable of managing to get it done.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f10a5b904f6aa93f88999257efb695fe49b306a4269debfb2f55ffe804fcb1dd.jpg" alt="Photo by Chad Greiter on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Chad Greiter on Unsplash</figcaption></figure><h2 id="h-the-eigenphi-way" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The EigenPhi Way</h2><p>To be more specific, EigenPhi provides innovative approaches to accomplish:</p><ul><li><p>In-transaction and between-transactions structure analysis, simplifying and unveiling the complicated transaction details like cost and profit for investors to understand.</p></li><li><p>Behavior analysis, uncovering hidden information entropy by using automatic and productive computing methods.</p></li><li><p>Network analysis, unmasking the concealed connections and intentions among entities appearing as patterns.</p></li><li><p>Complete data analysis, including on-chain, cross-chain, addresses, tokens, and transaction behaviors.</p></li><li><p>All the above can be mathematically and statistically verified.</p></li></ul><p>EigenPhi’s talented engineering team has in-depth industry backgrounds both in cryptocurrency and TradFi. We provide data products in a productive, responsive, and reliable way.</p><h2 id="h-why-mev-and-arbitrage" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Why MEV &amp; Arbitrage?</h2><p>To tackle it head-on with MEV, the<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=HYPGD2bOMOo&amp;t=357s"> gravest crisis of DeFi</a> is facing at the moment; EigenPhi chose MEV-related data, which encompasses the most accurate and authentic data regarding DeFi liquidity.</p><p>MEV transactions are the most complicated and most concerning transactions of DeFi. Unfortunately, few handy tools on the market can examine the massive capital invested into MEV closely. Based on our data, there are five asset transfers in one MEV transaction on average.</p><p>By targeting MEV, EigenPhi looks to enhance the efficiency of the market and build a healthier and more robust DeFi ecosystem.</p><p>Presently, EigenPhi provides Arbitrage Scan to help dissect the structure of transactions.</p><ul><li><p>It helps users to understand how arbitrage strategy works in terms of asset transfer.</p></li><li><p>It illustrates opportunities for searchers to take advantage of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/what-is-arbitrage">arbitrages</a> that benefit market productivity, such as Spatial, Triangular, Combination, and Liquidation.</p></li><li><p>It exposes nasty arbitrages like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/arbitrage-types/sandwich-arbitrage">Sandwich</a> to raise awareness in the community.</p></li></ul><p><strong>Ultimately, EigenPhi empowers users with information apparatus to explore the new DeFi world.</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d22f21ec8a7ff0ca4c9c91d89bf94efdc48b9c5579853e2e237bb8bd16b01d50.jpg" alt="Photo by Kalen Emsley on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Kalen Emsley on Unsplash</figcaption></figure><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi?utm_campaign=Wisdom%20of%20DeFi%20by%20EigenPhi&amp;utm_medium=email&amp;utm_source=Revue%20newsletter">EigenPhi Official Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert?utm_campaign=Wisdom%20of%20DeFi%20by%20EigenPhi&amp;utm_medium=email&amp;utm_source=Revue%20newsletter">EigenPhi MEV Alert Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/?utm_campaign=Wisdom%20of%20DeFi%20by%20EigenPhi&amp;utm_medium=email&amp;utm_source=Revue%20newsletter">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi?utm_campaign=Wisdom%20of%20DeFi%20by%20EigenPhi&amp;utm_medium=email&amp;utm_source=Revue%20newsletter">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34?utm_campaign=Wisdom%20of%20DeFi%20by%20EigenPhi&amp;utm_medium=email&amp;utm_source=Revue%20newsletter">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi?utm_campaign=Wisdom%20of%20DeFi%20by%20EigenPhi&amp;utm_medium=email&amp;utm_source=Revue%20newsletter">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a?utm_campaign=Wisdom%20of%20DeFi%20by%20EigenPhi&amp;utm_medium=email&amp;utm_source=Revue%20newsletter">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi?utm_campaign=Wisdom%20of%20DeFi%20by%20EigenPhi&amp;utm_medium=email&amp;utm_source=Revue%20newsletter">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[How To Recognize Cross-Transaction Arbitrage Like Sandwich]]></title>
            <link>https://paragraph.com/@eigenphi/how-to-recognize-cross-transaction-arbitrage-like-sandwich</link>
            <guid>N3kBwxMGJxlO6ROvsRD1</guid>
            <pubDate>Wed, 25 May 2022 13:11:21 GMT</pubDate>
            <description><![CDATA[Photo by Sara Cervera on UnsplashWe have explained in our last post how we identify atomic arbitrages like Spatial, Triangular, and Combination. This time, we will lead you through our methodology regarding Sandwich arbitrage. You might want to first review some of the core concepts, such as CombinedTransferTable and Trade, for a better understanding. The cross-transaction structural analysis is an extension of the intra-transaction analysis approach. A Sandwich arbitrage has characters as be...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/128a0d62a616b526d346602e47613cd7fa3424157d281fdd3be331a06d17bef0.jpg" alt="Photo by Sara Cervera on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Sara Cervera on Unsplash</figcaption></figure><p>We have explained in our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/p/how-eigenphi-identifies-arbitrage?s=w">last post</a> how we identify atomic arbitrages like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/arbitrage-types/spatial-arbitrage">Spatial</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/arbitrage-types/triangular-arbitrage">Triangular</a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/arbitrage-types/combination-arbitrage">Combination</a>. This time, we will lead you through our methodology regarding Sandwich arbitrage.</p><p>You might want to first review some of the core concepts, such as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/eigenphis-methodologies/how-eigenphi-identifies-arbitrage-transactions/recognizing-atomic-arbitrage-transactions/implementation#combined-transfer-table">CombinedTransferTable</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/eigenphis-methodologies/how-eigenphi-identifies-arbitrage-transactions/recognizing-atomic-arbitrage-transactions/implementation#trade">Trade</a>, for a better understanding.</p><p>The cross-transaction structural analysis is an extension of the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/eigenphis-methodologies/how-eigenphi-identifies-arbitrage-transactions/recognizing-atomic-arbitrage-transactions">intra-transaction</a> analysis approach.</p><p>A Sandwich arbitrage has characters as below.</p><ul><li><p>In the same Block, the Attacker’s Transactions contain a Start Transaction, an End Transaction, and one or more Victim Transactions in between.</p></li><li><p>The combination of Attacker and Victim needs to satisfy an essential condition: the From Address is not the same.</p></li></ul><p>The pattern of Sandwich has the combination of (Attacker Start Transaction, Victim Transaction, and Attacker End Transaction). The CombinedTransferTable of each transaction contains the same Address processing the Trade. Combining the Attacker’s Start Transaction and End Transaction, we get the CombinedTransferTable of this arbitrage having the final net surplus.</p><p>Let’s look at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.eigenphi.io/ethereum/tx/0x8ea8aec6887d9ca23b1fa681988866d418284a66f90a1dc3e16432f1ca1db726">this one</a>.</p><p><strong>Transaction list on BlockNumber: 14762460</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/be01b6cb85f6f1fda48cb46589161ff5caab442f7695e51bbd0e2877e2756665.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Attacker Start Transaction CombinedTransferTable</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/fb47413384da024936467b26fb946da02c8a7acca18aad20cab4c18e05dd4886.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The Attacker bought WETH at the following price: 1996 USDT.</p><p><strong>Victim Transaction CombinedTransferTable</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/657f42c302202df7ea1259455846bec20ea167136d40bac5ccb065ff21bd36a6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The Victim bought WETH at the following price: 2031.8 USDT.</p><p><strong>Attacker End Transaction CombinedTransferTable</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/207f688c9fd0b4882a1baa84f74252808ee7dfac083fd6e365109e57850a0118.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The Attacker sold WETH at the following price: 2005.4 USDT, higher than the buying price.</p><p><strong>Signal for Arbitrage Recognition</strong></p><p>All three transactions had Trade happened on Address: Uniswap V2: USDT 0x0d4…f1852.</p><p><strong>Attacker’s Final Net Profit</strong></p><p>Attacker’s Start / End Transaction Combined:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ef92ce546d9963c2a31cbc7a7f28d6e1e91c20c1920024363c071d3679e553af.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In this Sandwich arbitrage, Attacker MEV Bot: 0x000…e7D’s revenue was 2920.4 USDT before deducting costs like gas fees.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/23b1aa599a9e74bf85bdd790e5b45d6ba59687e9a9f063ccc0769fa1f918f15b.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>That’s it. Next time, we will discuss why you should find out the transaction structures on DeFi. To put it simply: understanding the underlying structures of DeFi MEV transactions is essential to navigate through the maze built on Smart Contract and establish the new frontier for the new world of DeFi.</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi Official Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi MEV Alert Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[How EigenPhi Identifies Arbitrage Transactions - EigenPhi - Medium]]></title>
            <link>https://paragraph.com/@eigenphi/how-eigenphi-identifies-arbitrage-transactions-eigenphi-medium</link>
            <guid>QeAHVsMjo9In0TRLuCdH</guid>
            <pubDate>Mon, 16 May 2022 19:51:53 GMT</pubDate>
            <description><![CDATA[Photo by Marten Newhall on UnsplashUnlike the traditional Internet, which comprises web pages and hyperlinks, DeFi is built upon Smart Contracts and their complex transaction interactions and structures. The interplays between Smart Contracts, DeFi assets, and their callers are so diverse and flexible that they are impossible to decipher without a powerful tool, let alone decode the hidden market signal. For example, consider the Cream Finance Flash Loan attack from last year. There were 29 t...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/3cbe7aa23f39454e73d517898ad548c4707c54261cb777f8ee7d538343a8c383.jpg" alt="Photo by Marten Newhall on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Marten Newhall on Unsplash</figcaption></figure><p>Unlike the traditional Internet, which comprises web pages and hyperlinks, DeFi is built upon Smart Contracts and their complex transaction interactions and structures. The interplays between Smart Contracts, DeFi assets, and their callers are so diverse and flexible that they are impossible to decipher without a powerful tool, let alone decode the hidden market signal.</p><p>For example, consider the Cream Finance Flash Loan attack from last year. There were 29 tokens, 30 liquidity pools, 5 protocols, and 75 transfers involved. These transactional elements formed the behaviors, which in turn established the networks.</p><p><strong>Structures, behaviors, and networks are the invisible pillars of the DeFi that you have to figure out if you want to be a conqueror of the new world.</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a4287a3941e131589c710e952bfc95aa866f5e5430c31438c59bd82d530c6dd5.jpg" alt="Photo by Jeremy Bezanger on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Jeremy Bezanger on Unsplash</figcaption></figure><p>As the pioneer of the new generation of DeFi data analysis platforms, EigenPhi adopts methodologies focusing on starting from a thorough inspection of transaction structures formed by Smart Contracts.</p><p><strong>With the rigorous dissection and simplified presentation of the asset transfers among liquidity pools, EOAs, and protocols in an easy-to-understand way, EigenPhi’s behavior and network analysis have a solid premise to help users with means of pricing the liquidity and recognizing the risks, eventually being able to take in not only the story behind the curtain but also profits and gains from their assets.</strong></p><p>It’s a challenging path to take, but an essential one that EigenPhi has been working on since the beginning. And we are the only team in the market capable of managing to get it done.</p><p>Here is the EigenPhi way of dissecting transaction structures in a nutshell.</p><h2 id="h-recognizing-atomic-arbitrage-transactions" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Recognizing Atomic Arbitrage Transactions</h2><p>Given that a transaction can be arbitrarily complex and can have an endless number of unknown transaction patterns, the approach of using specific transaction pattern matching cannot cope with new arbitrage patterns. To determine whether arbitrage occurs in a transaction, we need a universal abstraction for transactions.</p><p>Here are the principles we set up for the recognition.</p><p>We consider a transaction to be a collection of asset transfers, and we use a set of rules to see if an arbitrage has happened by assessing the outcomes of these transfers. The rule of thumb is that there is more than one transfer (or swap) in the transaction, and the trader ends up with a surplus.</p><h2 id="h-abstract-approach" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Abstract Approach</h2><p>A Transaction can be abstracted into the following behaviors: Transfer, Trade, and their combinations. TransferTable is generated by merging the Transfers into a single table called Transfer Table. Then we merge the rows with the same address in the TransferTable to get CombinedTransferTable.</p><h2 id="h-implementation" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Implementation</h2><p><strong>Asset</strong></p><ul><li><p>ETH or ERC20 Token</p></li></ul><p><strong>Transfer method</strong></p><p>We use it to describe a flow of Assets between two addresses in a transaction.</p><ul><li><p>Transfer :: (From Address, To Address, Asset, Amount)</p></li><li><p>Meaning: transfer Asset from one Address to another Address。</p></li></ul><p><strong>TransferTable</strong></p><ul><li><p>makeTransferTable :: [Transfer] -&gt; TransferTable</p></li></ul><p>We use it to describe the** process** of the multiple Assets flows happening between all the involved Addresses in one transaction.</p><ul><li><p>The columns of TransferTable are the assets.</p></li><li><p>Each row of the TransferTable indicates that an Asset of an Address has changed, with a positive value indicating an increase and a negative value indicating a decrease.</p></li><li><p>A Transfer corresponds to two rows in the TransferTable: one for the from Address, which corresponds to a negative Asset value, indicating an outflow of Asset, and one for the to Address, which corresponds to a positive Asset value, indicating an inflow of assets.</p></li></ul><p><strong>CombinedTransferTable</strong></p><p>We use it to describe the** final outcome** of the multiple Assets flows happening between all the involved Addresses in one transaction.</p><p>We merge the rows with the same Address in the TransferTable and add all the Asset values, generating the CombinedTransferTable.</p><ul><li><p>makeCombinedTransferTable :: TransferTable -&gt; CombinedTransferTable</p></li></ul><p><strong>Trade</strong></p><p>An Address is said to have made a Trade when it <strong>ends up with changes</strong> in assets after a Trade, where there is a decrease in an Asset <strong>AND</strong> an increase in another Asset.</p><p><strong>Rules for Arbitrage Recognition</strong></p><p>Arbitrage is considered to have occurred when the following conditions are met after a Trade.</p><ul><li><p>An arbitrage trader has made more than one Trade at another Address.</p></li><li><p>Each Asset involved in the Trades has experienced inflows and outflows in the respective Trade.</p></li><li><p>The trader’s net surplus is positive</p></li></ul><h2 id="h-example" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Example</h2><p>A typical Triangular arbitrage identified by EigenPhi</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.eigenphi.io/ethereum/tx/0xd5b0c82326493690e05c3ac4be63e8bb7763f1a99fbea6db293ec317c8ce5595">Transaction page on EigenPhi</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/tx/0xd5b0c82326493690e05c3ac4be63e8bb7763f1a99fbea6db293ec317c8ce5595">Transaction page on EtherScan</a></p></li></ul><p><strong>The transfers list:</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/1b7f667185aaae0ca421d23ee0858184da34e167e48b1b8028177520b18457a9.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>The TransferTable of the transaction:</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2306f26353d481e6c96187ffa9e5d1f770912f5f1ab73008252ef31831c3ba54.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>The resulted CombinedTransferTable:</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2d791e5e57632b98d45e192a25b7bd636888ecbb569b1765c97a7519a0a8bb30.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>The Judgment</strong></p><ul><li><p>According to the CombinedTransferTable, we can tell that–SushiSwap USDC 0x397, SushiSwap USDT 0x06d, and Uniswap V3 USDC-USDT 0x785–this three Addresses have engaged in the Trades.</p></li><li><p>The 3 Trades involve USDC, WETH, and USDT, and the columns of each asset have both positive and negative values.</p></li><li><p>MEV-Bot 0x80d has no Trade and its net surplus is positive.</p></li></ul><p>Therefore, we identify this transaction as an <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.eigenphi.io/ethereum/tx/0xd5b0c82326493690e05c3ac4be63e8bb7763f1a99fbea6db293ec317c8ce5595">arbitrage</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f112fb2a1aaea38185262a390c69dc759efc87eac520024917e5c9895234c701.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>OK then, we’ve walked you through EigenPhi’s methodology of identifying atomic arbitrages. In the next post, let’s take a look at how to recognize a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/sandwich">Sandwich arbitrage</a>.</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[Ever Wonder Have You Been Sandwiched in 2022? - EigenPhi - Medium]]></title>
            <link>https://paragraph.com/@eigenphi/ever-wonder-have-you-been-sandwiched-in-2022-eigenphi-medium</link>
            <guid>rMy3r2ZTNdutW1pToK8x</guid>
            <pubDate>Wed, 11 May 2022 15:43:12 GMT</pubDate>
            <description><![CDATA[Photo by Marijana Vasic on UnsplashThe past few days have been crazy. Retail investors like you and I are eager to transfer our assets somewhere safe. While in a hurry, we might have set our transaction slippage too high, which eventually made us the victim of Sandwich arbitrages without even knowing it. The data proves the Sandwich arbitrages’ increasing trend. Take a look at the three charts below. The first shows the last seven days of Sandwich arbitrages’ cost, profit, revenue, and arbitr...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/bee85efc4dc834fd7279b982b3be1fa06a349b566a82fc036c5a0c6346fe020e.jpg" alt="Photo by Marijana Vasic on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Marijana Vasic on Unsplash</figcaption></figure><p>The past few days have been crazy. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/users-of-eigenphi/retail-investor">Retail investors</a> like you and I are eager to transfer our assets somewhere safe. While in a hurry, we might have set our transaction slippage too high, which eventually made us the victim of Sandwich arbitrages without even knowing it.</p><p>The data proves the Sandwich arbitrages’ increasing trend. Take a look at the three charts below.</p><p>The first shows the last seven days of Sandwich arbitrages’ cost, profit, revenue, and arbitrage count on Ethereum.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/90c9046f912cf088bb245c3af10fddba8653466c1c7118385bdb102ca039f2ad.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>This chart displays the data of Sandwich arbitrages with over $1K profits during the last seven days.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7ffad9662345d705eaef0213505633d0119c1b47db060b594ec996263615e986.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The last illustrates the Sandwich arbitrages done by MEV-bot.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f0acfa54d3e751e987cd3d257853e97d6b97e261294049447c0c01f9892782d2.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The last three days’ data are outstanding compared with before, fitting the volatile market condition.</p><p>In that case, you might want to see if you have been the victim of any sandwich attacks. Usually, it’s hard to do. Well, not anymore. We just launched a search tool to help you.</p><p>Visit <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/sandwich/search">https://eigenphi.io/sandwich/search</a>, you will see this page:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/87e3604644a4efd113c3d13f5a177ce1baec5857e3d394217fe14f07d95c3e84.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Put your wallet address in it:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/66d3a34b84beb58a5e02a768c4c82b4cd023c250084f67b28e0567bae005939d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Seems like you have been lucky. But if you see this:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/09426c8cff155ca2bc131eaba0cf13220e9fbdc0411f758ba772a59d34efcf92.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>You might want to open the report page and check where it happened to avoid future attacks.</p><p>OK, that’s it. With the market going like a roller-coast, it’s always better safe than sorry. If you think this little search tool is useful, please recommend it to your HODLer fellows. Pretty sure they will appreciate it.</p><p>Oh, if you want to do some analysis like the charts above, you can always go download our data in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.google.com/spreadsheets/d/156fapjTIhDNCqjr02w-1zXvTfbMmYdDWraXS8JNLDA4/edit#gid=0">public Google Sheet</a> and #DYOR.</p><p>And remember to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">join our AMA</a> at 10:30 AM EST this Friday morning!</p><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[Discord AMA, Dark Theme, and Daily Report - EigenPhi - Medium]]></title>
            <link>https://paragraph.com/@eigenphi/discord-ama-dark-theme-and-daily-report-eigenphi-medium</link>
            <guid>nNVTeUfU5gdAzHoUO4hx</guid>
            <pubDate>Wed, 11 May 2022 15:42:15 GMT</pubDate>
            <description><![CDATA[Hi guys, here we go again! First thing first. We have set up the details of the first AMA(Ask Me Anything) of EigenPhi: Time: EST 10:30 AM, May 13th, Friday. Venue: Discord Channel. Can’t wait to talk to you guys!! And write down in the comment section what you want to hear about us, our products, well, Ask Me Anything!Photo by Hannes Richter on UnsplashLet’s move on for a bit of retrospecting. Yesterday, we showed you our latest EigenPhi Classroom and Arbitrage Scan User Guide. It seems peop...]]></description>
            <content:encoded><![CDATA[<p>Hi guys, here we go again!</p><p>First thing first. We have set up the details of the first AMA(Ask Me Anything) of EigenPhi:</p><p>Time: EST 10:30 AM, May 13th, Friday.</p><p>Venue: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.gg/z6SfB2FA">Discord Channel.</a></p><p>Can’t wait to talk to you guys!! And write down in the comment section what you want to hear about us, our products, well, Ask Me Anything!</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b361c3a212945d9cf6950b1afcf6318d8956aab2e1519303ce159d08d5e0b55f.jpg" alt="Photo by Hannes Richter on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Hannes Richter on Unsplash</figcaption></figure><p>Let’s move on for a bit of retrospecting.</p><p>Yesterday, we showed you our latest <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/">EigenPhi Classroom</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/">Arbitrage Scan User Guide</a>. It seems people are excited and curious about our understanding of these MEV ideas and concepts. Here are the top 5 most visited pages in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/">Classroom</a>:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/arbitrage-types/sandwich-arbitrage">Sandwich Arbitrage</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/glossary/arbitrage-contract">Arbitrage Contract</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/users-of-eigenphi/retail-investor">Retail Investor</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/glossary/malicious-token">Malicious Token</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/what-is-arbitrage">What is Arbitrage</a></p></li></ul><p>How about the User Guide? The top 5 pages are:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/home">Home</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/transaction">Transaction</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/contract">Contract</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/transaction/spatial-arbitrage-details">Spatial arbitrage details</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/home/arbitrage-contract-profit-leaderboard">Arbitrage Contract Profit Leaderboard</a></p></li></ul><p>Today, let’s look at some of the features and data that would make you feel better and more confident when browsing opportunities.</p><h2 id="h-dark-theme-is-here" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Dark Theme is Here!</h2><p>If you want to pull an all-nighter to understand how the alphas have been employing their strategies, a dark theme UI will put your eyes at ease. Now you can do it on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/">https://eigenphi.io/.</a></p><p>If you are using the desktop and laptop, navigate to the upper right corner on any page of our website. Click! You may now easily switch between light and dark modes easy peasy.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/0e9ad2f3e8519021fbb778d741ac70032c99da88ba56ce2497903aef0902f539.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/dbdc67c7ee89519a3a956dbd5faaaf9a6586eac8798cbbd3b674f5d6c6806844.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>If you are using your mobile phone right before bedtime, you can do so in the following ways:</p><p>That’s everything! Now you can work around the clock like the crypto market! But we strongly advise against doing so.</p><h2 id="h-have-you-checked-out-our-daily-report-yet" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Have You Checked Out Our Daily Report Yet?</h2><p>After absorbing the necessity of everyday morning’s caffeine, you might want to check on what’s happening during the last 24 hours, including when you’re sleeping. That’s why we compile the daily report of arbitrages happening on both Ethereum and BNB Smart Chain.</p><p>Let’s take a look at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.notion.site/Arbitrage-Daily-Report-05-10-2022-by-EigenPhi-f0cb580561d6497191484afa9000bcef">today’s report</a>, of which the time period is from EST 7 am, May 9th to 7 am, May 10th.</p><p>The whole report has three sections:</p><ul><li><p>Ethereum Arbitrage demonstrates the summary of arbitrages happening on Ethereum during the time period.</p></li><li><p>Ethereum MEV-bot Arbitrage shows you the overview of arbitrages done by MEV-bot on Ethereum.</p></li><li><p>BSC Arbitrage displays the summary of arbitrages happening on BSC during the 24 hrs.</p></li></ul><p>The calculation methodologies behind each section are the same. Therefore, we will use the first one as an example.</p><p>The first part of each section has three donut charts illustrating the subtotal of profit, cost, and revenue of the four arbitrage types: Combination, Spatial, Sandwich, and Triangular.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ac179a3e7a90fd036a5ae330150a08bbe23a62a1892c993a2e049cd8389f4906.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Here is the profit donut chart:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/159d9a8159ee491a8e9f1f7c903c95b4f7609f7963fe69cd5d5f2662c8160c16.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Each part of the donut chart shows the percentage of the type against the total profit. We can tell that the Combination arbitrage transactions’ profit is 6.7% of the total profit, Spatial 34.2%, Sandwich 26.4%, and Triangular 32.6%. How much precisely is Sandwich arbitrages’ profit? Move the cursor to its part of the donut chart, showing $281,879.</p><p>The same applies to the Cost vs. Arbitrage Type donut chart and Revenue vs. Arbitrage Type chart.</p><p>Below the donut charts, a table shows all the crucial arbitrage data regarding each arbitrage type at once. Each data cell shows the corresponding data and the percentage against yesterday.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/33b2fdb09e548f6a6ba51b0bd89d3f0c012772eb48cd47f91aa40744221999f5.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Here are the columns and their meanings.</p><ul><li><p>Type: Arbitrage type</p></li><li><p>Profit: Subtotal profit of the type.</p></li><li><p>Cost: Subtotal cost of the type.</p></li><li><p>Revenue: Subtotal revenue of the type.</p></li><li><p>ROI: the return on investment of the type. It results from profit dividing cost.</p></li><li><p>1k Trx Count: The count of this type’s transactions with a profit over 1,000 USD.</p></li><li><p>MEV-Bot Trx Count: The count of this type’s transactions done by MEV-bot.</p></li><li><p>Trx Count: The count of this type’s transactions happened during the time period.</p></li></ul><p>There are five rows of data in the table, showing four types and the total of the time period.</p><p>Take Sandwich’s cost, for example. It is located in the cell on the 2nd row and the 2nd column. And the amount is $869,664; compared to yesterday’s same time frame, it increased by 153.5%.</p><p>We can also check the ROI of Combination: 56.5%, which decreased by 6.7% from yesterday.</p><p>If you are a searcher looking for opportunities, it’s almost impossible to filter the profitable liquidity pools and token pairs without a proper guide. That’s why we provide <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/pool/freq">Hot Liquidity Pools</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/pool/token">Hot Tokens</a> on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/">https://eigenphi.io/.</a> And we selected the top 3 of the Hot LPs and Hot Tokens and put them into the daily report, both on Ethereum and BSC, based on the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/glossary/trading-volume-change">trading volume change %</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/59e1e90fb131ae51e15f1ac45e6819a699f1e078aa0ab89c97af32655c389d64.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Click either the token symbols or the address. You will be directed to the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/token">token details page</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/liquidity-pool">liquidity pool pages</a> for more details to benefit your trade, including other pools having the tokens, arbitrage profit leaderboard, etc.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/acef571ce3df6c1e9dc8bb51f0c8dda5da14c0eeb11e5c15a5ff2c2426033544.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Alpha transaction happens every day. It’s essential to observe how they get it done, like using which pools to transfer what kind of assets. We choose the top 3 most profitable transactions to show how these top dogs play. Maybe we all can learn something from them.</p><p>That’s it for the daily reports. We have generated them daily since the beginning of 2022, which you can examine <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.notion.site/Auto-Daily-Report-2f6bc48486e04c5199ab6159d3ff0e05">here</a>. There are two ways to follow the latest daily report from us:</p><ul><li><p>Bookmark <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.notion.site/Auto-Daily-Report-2f6bc48486e04c5199ab6159d3ff0e05">this page</a>, and check for the updates after 8:30 EST each morning, rain or shine, every day.</p></li><li><p>Follow our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">Twitter</a>, which broadcasts the daily report every day too.</p></li></ul><p>One more thing: if you fancy #DYOR, you might have noticed that we provide all the historical daily report data for download in this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.google.com/spreadsheets/d/156fapjTIhDNCqjr02w-1zXvTfbMmYdDWraXS8JNLDA4/edit#gid=0">public Google Sheet</a>.</p><p>You may ask what kind of research can be done with these data. Well, we will make a few and show them to you using another post. Meanwhile, feel free to check the data out and share with us what you can find!</p><p>Last but not least, come and join us in our AMA!</p><p>Time: 10:30 AM, May 13th.</p><p>Venue: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord Channel</a>.</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[EigenPhi Classroom, User Guide, Data Source, MEV.day, and AMA!]]></title>
            <link>https://paragraph.com/@eigenphi/eigenphi-classroom-user-guide-data-source-mev-day-and-ama</link>
            <guid>z4JGbYW8R1dSK2L1xELk</guid>
            <pubDate>Mon, 09 May 2022 19:16:03 GMT</pubDate>
            <description><![CDATA[Photo by Il Vagabiondo on UnsplashLong time no see, guys! With so much going on right now, we simply wanted to share a few small updates that we’ve been working on to bring EigenPhi closer to the community and make it the best MEV data service you can imagine. OK, let’s begin! 1. We just released EigenPhi Classroom. Whether you are a searcher or a daily trader, it might take some time to be familiar with EigenPhi’s product. So, to make you feel at ease, we share our explanations of concepts, ...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/89453a2051647953b38163b346d87e46dce7e853969a5323f245f7a200d5e65d.jpg" alt="Photo by Il Vagabiondo on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Il Vagabiondo on Unsplash</figcaption></figure><p>Long time no see, guys!</p><p>With so much going on right now, we simply wanted to share a few small updates that we’ve been working on to bring EigenPhi closer to the community and make it the best MEV data service you can imagine.</p><p>OK, let’s begin!</p><p>1. We just released <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/">EigenPhi Classroom</a>.</p><p>Whether you are a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/users-of-eigenphi/searcher">searcher</a> or a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/users-of-eigenphi/retail-investor">daily trader</a>, it might take some time to be familiar with EigenPhi’s product. So, to make you feel at ease, we share our explanations of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/what-is-arbitrage">concepts</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/glossary/profit">formulas</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/glossary">glossaries</a>, and even our methodologies behind EigenPhi’s products in this classroom.</p><p>Visit the<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/"> classroom</a> and offer your suggestions on what you’d want to see there. We’ll do everything we can to make them more understandable!</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6933d749851a84ad19f0bda671fd47b3a3f8be2c468e48fa43826b063bc66f78.jpg" alt="Photo by Zaini Izzuddin on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Zaini Izzuddin on Unsplash</figcaption></figure><p>2. Along with EigenPhi Classroom, we also released the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/">EigenPhi Arbitrage Scan User Guide</a>.</p><p>This user guide focuses on the product, showing you how to use Arbitrage Scan to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/">benefit your daily trading</a>, how to read <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/transaction">the strategy </a>of different types of arbitrages, how to interpret <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/transaction/sandwich-arbitrage-details">the Sandwich recipes</a>, what the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/hot-tokens">hottest tokens </a>and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/hot-pools">liquidity pools</a> are, and most recently, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/liquidation">how to read</a> our latest <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/liquidation">liquidation module</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/455e6c4e9d7e89308cc0148890ba5f8881a1c18dd0e2af80b1f3105bcb179130.jpg" alt="Photo by Heidi Fin on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Heidi Fin on Unsplash</figcaption></figure><p>3. We published <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/our-data-sources">our data sources </a>as the first step of our appreciation to the community.</p><p>Since its birth, openness and accessibility have been the hallmark of DeFi to keep the conventional rigged mechanisms at arm’s length. Without the data and projects from the community, EigenPhi would not be here today. The publication of the data source is only the beginning. We’re organizing our arbitrage recognition methodologies, which will be available for everyone to see in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/">EigenPhi Classroom</a>.</p><p>4. MEV.day in Amsterdam. Yes, we were there. Here is the picture of our guy with Vitalik.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d69630cefd92babdd5856e83586988eb31017176563fc89d1f48ed78d9820820.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>And check out <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/Eigenphi/status/1517904678557732870">the venue used as the co-working space</a> and Hackerthon during the Devconnect Amsterdam. The vibe there was unique! Because people understand what they are doing now is revolutionizing the dysfunctional incumbent financial systems in this ex-commodity exchange since 1903.</p><p>We’re putting up a summary of what we learned during MEV.day, which will be posted here. Meanwhile, we strongly advise you to watch the event’s <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://streameth.tv/event/mev-day">recorded streaming</a> together with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://flashbots.notion.site/flashbots/mev-day-836f88806995412dabc1c7bb7ce4e830">the agenda</a>.</p><p>5. Last but not least, even if you’ve visited our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/classroom/">Classroom</a> and read the<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi-1.gitbook.io/arbitrage-scan-user-guide/"> User Guide</a>, you may still have questions and want to talk to us. This week, we will be doing our first AMA with you guys via <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">our Discord</a>. So be prepared and leave your questions in the comments section. We will send out the specific timetable later.</p><p>Whew, that’s a lot to take in. Don’t worry, and you can always contact us using the channels below. Stay tuned! 😎</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[Two Simple Tricks To Avoid Losing 10 Billion for Being DeFi Phishing Target, and Two More Principles]]></title>
            <link>https://paragraph.com/@eigenphi/two-simple-tricks-to-avoid-losing-10-billion-for-being-defi-phishing-target-and-two-more-principles</link>
            <guid>sa1lANJANRtD0b0XHFa9</guid>
            <pubDate>Mon, 11 Apr 2022 23:31:51 GMT</pubDate>
            <description><![CDATA[In 2021, till Nov 19th, 10.5 billion loss was subject to thefts, frauds, and scams. — CNBCPhoto by Clint Patterson on UnsplashA few days ago, someone contacted EigenPhi and asked for our help collecting information regarding his fraud case. For the sake of clear description, let’s call him John. John visited this website: www.ammuni.io, which seemed like a legit DeFi project. Later, the guys running the project coaxed him to authorize them to have unlimited access to John’s MetaMask wallet vi...]]></description>
            <content:encoded><![CDATA[<blockquote><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.cnbc.com/2021/11/19/over-10-billion-lost-to-defi-scams-and-thefts-in-2021.html"><em>In 2021, till Nov 19th, 10.5 billion loss was subject to thefts, frauds, and scams.</em></a></p><p><em>— CNBC</em></p></blockquote><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/73f527d6ebbb2043f9486a9ec17bf36a94cfc935d827e4e7ed9a1010e889576d.jpg" alt="Photo by Clint Patterson on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Clint Patterson on Unsplash</figcaption></figure><p>A few days ago, someone contacted EigenPhi and asked for our help collecting information regarding his fraud case. For the sake of clear description, let’s call him John.</p><p>John visited this website: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.ammuni.io/"><strong>www.ammuni.io</strong></a>, which seemed like a legit DeFi project. Later, the guys running the project coaxed him to authorize them to have unlimited access to John’s MetaMask wallet via the website:</p><p><strong><em>[ALERT: DON’T, REPEAT, DON’T CONNECT YOUR WALLET TO THIS WEBSITE]</em></strong></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ammuni.shop/#/.">https://ammuni.shop/#/.</a> Then they asked John to put into a massive amount of money in the name of staking. During the next few days, the token was gone.</p><p>After researching the scenario, while feeling sorry for John, we admit that our hands are tied. Essentially, it’s the situation that needs law enforcement intervention.</p><p>However, we still think two simple tricks can reduce the risk of being targeted by scamming gangs.</p><p><strong>Trick 1: Open the Phishing Detection setting of MetaMask.</strong></p><p>Here are the detailed steps.</p><p>Step1: open your MetaMask browser plugin and click your account avatar.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2a999e7f33679083045504fe68555eb20c28e7eafaa1740ac3a6920a7523bb80.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Step 2: Click the Settings in the opened window.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/db452932b291feb279b7da60667012d95c5c3199f457446440b929467e4a24b7.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Step 3: Click “Security &amp; Privacy” in the menu of Settings.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/28eac9df1b6020140a70442f514820abbdacf69a34de7ca167112406716f3e95.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Step 4: Switch on the “Use Phishing Detection.”</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/9e678fdd1f235fad60f8454853e2e444889a5516eef476429e6ca9a39a390979.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>That’s it. Now when you visit a phishing website that is unknown to you, like the one mentioned above, you will see the message like this:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/0154e8ba59771afcedabf159b015bf17875ac9f0935bde77808805fd8e2c646f.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Trick 2: Verify the team behind the project using a reverse image search.</strong></p><p>Open <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.ammuni.io/">www.ammuni.io</a>, and it looks like everything is there. Of course, for an ordinary #degen, it’s hard to take time to read their whitepaper and financial jargon. But they put the team’s information on the webpage, which you can verify using your browser. Other browsers have similar features, plugins, or extensions.</p><p>Step 1: Scroll to the Our Team part of the page.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a4e3cb103508955ac36fd9f591a9659e638d0b7998c3db2aa1f6bee151eff42c.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Step 2: Right-click the team member’s pictures and choose “Search Image with Google Lens.”</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f83076d35d4028566a747697fe1dedd98611e92a27a7d733d3d60037429f8ac7.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Step 3: See what we got from the new tab:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/3fb498419b8f201911af3781b1810e90a8c4c6d2d6470741354ddf50304de23e.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Obviously, this guy’s picture is from some stock photo website, which is enough to raise a red flag: have you met any data scientist who wants to sell his portrait as a stock photo?</p><p>Step 4: Let’s check another one. Right-click the photo of the CEO and check the results.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a5571f102ac86ee19d9a89aed0f7a0c7c78d6964795d2eea69630c9225e802f2.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Free photo again.</p><p>OK, just forget about this one and move on to the next project.</p><p>In conclusion, under the current development, DeFi is the Dark Forest everyone should know. Some simple tricks like the ones in this article are easy to use to alleviate the risks of scamming and fraud.</p><p>Even if you don’t use these tricks, there are 2 principles to remember before doing any transaction:</p><ol><li><p><strong>Double-check transactions before sending.</strong></p></li><li><p><strong>Set smart contract spending limits.</strong></p></li></ol><p>Please feel free to leave your comments and recommendations that would be helpful in terms of risk-free activities in DeFi.</p><p>P.S.: if you want to find out more about Token Approval, which is essential for your asset’s safety, read these two links:</p><ol><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/ethex-market/erc20-approve-allow-explained-88d6de921ce9">https://medium.com/ethex-market/erc20-approve-allow-explained-88d6de921ce9</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://learn.zapper.fi/articles/breaking-down-the-steps-of-token-approval">https://learn.zapper.fi/articles/breaking-down-the-steps-of-token-approval</a></p></li></ol><p>The <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://info.etherscan.com/tokenapprovals/">Ethereum Token Approval tool</a> is also an excellent tool to review and revoke your token approvals for any dApp.</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
        <item>
            <title><![CDATA[Interested in MEV? Here are two 0 to 1 #MEV Guide resources, 2 papers, and 1 Sandwich treat!]]></title>
            <link>https://paragraph.com/@eigenphi/interested-in-mev-here-are-two-0-to-1-mev-guide-resources-2-papers-and-1-sandwich-treat</link>
            <guid>szhEzxDiuwE9bVyBqheh</guid>
            <pubDate>Thu, 31 Mar 2022 20:05:28 GMT</pubDate>
            <description><![CDATA[We all need tools and data like our Sandwich arbitrage module to bring more openness and honesty to DeFi.Photo by Louis Hansel on Unsplash There are good #MEVs, and there are bad #MEVs. The good MEVs increase the DeFi market’s efficiency, like arbitrages between various DEX, which is a net positive for the ecosystem. But, on the other hand, bad MEVs like Sandwich arbitrage have been hurting the community by exploiting the everyday traders. To utilize the chances from good MEVs and avoid being...]]></description>
            <content:encoded><![CDATA[<p>We all need tools and data like our Sandwich arbitrage module to bring more openness and honesty to DeFi.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/abb09fb1f71a609f45d510f768494f25ce0a12c893ea6f450140e660eb2013c1.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Photo by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://unsplash.com/@louishansel">Louis Hansel</a> on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://unsplash.com/">Unsplash</a></p><p>There are good #MEVs, and there are bad #MEVs. The good MEVs increase the DeFi market’s efficiency, like arbitrages between various DEX, which is a net positive for the ecosystem. But, on the other hand, bad MEVs like Sandwich arbitrage have been hurting the community by exploiting the everyday traders.</p><p>To utilize the chances from good MEVs and avoid being squeezed by Sandwich, you’d better learn a few things or two about MEV.</p><p>As the exclusive arbitrage data platform of the industry, EigenPhi has benefited a lot from the resources below. Therefore, we’d like to recommend them to you for a better investment.</p><p>Oh, before starting, we’d like to share our<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/sandwich"> latest released Sandwich Arbitrage module </a>on our website. You can discover how many Sandwich arbitrages have happened during certain times, which contracts and transactions have reaped the most profits, how they did it illustrated in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/tx/0x53710e413befa7dde2a54eb3a3b157cd235934b5349b7a069eeb47b3711f7905">the straightforward token flow chart</a>, and their <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/sandwich/attacker/0x00000000003b3cc22af3ae1eac0440bcee416b40">attacking history chart</a>.</p><p>If you want to show more sympathy for the victims, you can check out <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/sandwich/victim/0x2048a301ee41de509d4e4d83f2bca8035558731a">their victim history chart</a>. In this case, there could not be a more accurate quote from historian Robert Thier:</p><blockquote><p><strong>Knowledge is power is time is money.</strong></p></blockquote><p>Here present two 0–1 MEV guide resources:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://calblockchain.mirror.xyz/c56CHOu-Wow_50qPp2Wlg0rhUvdz1HLbGSUWlB_KX9o">The 0 to 1 Guide for MEV</a>: compiled by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/CalBlockchain">BlockChain at Berkeley</a>, a Student-run organization at UC Berkeley focused on blockchain innovation via education, research, and consulting. This guide has a clearly defined structure, including backgrounds and information from easy to hard for different level readers. The most significant benefit might be: “<em>By the end of this you should be able to build your own MEV Bots.”</em></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://thedailyape.notion.site/MEV-8713cb4c2df24f8483a02135d657a221">The Daily Ape’s MEV</a> resource: Darren Lau, aka <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/Darrenlautf">Daily Ape</a>, is one of the authors of the famous How To DeFi book series. His page incorporates many insightful Twitter threads, institution research reports, and industry conference slides and summaries. You will be fully equipped after reading all of them, if you can… Also, the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://thedailyape.notion.site/thedailyape/The-Daily-Ape-c96c0b6727c0433a962e897ef43efb7e">deeper rabbit hole on DeFi</a> by this remarkable ape is waiting for the next victim if you can’t help but drench yourself.</p></li></ul><p>The two papers below aim at the same goal as EigenPhi: facilitating transparency in DeFi. A better Web3 needs input across all spectrums.</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2106.07371">A2MM: Mitigating Frontrunning, Transaction Reordering and Consensus Instability in Decentralized Exchanges</a>. The paper introduces a new AMM design: an Automated Arbitrage Market Maker, short A2MM DEX. In expectation, A2MM’s revenue allows reducing swap fees by 90%.</p></li></ul><blockquote><p><em>A2MM aims to unite multiple AMMs to reduce overheads, costs and increase blockchain security. With respect to Miner Extractable Value (MEV), A2MM serves as a decentralized design for users to atomically collect MEV, mitigating the dangers of centralized MEV relay services.</em></p></blockquote><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2112.01472#:~:text=Unity%20is%20Strength%3A%20A%20Formalization%20of%20Cross%2DDomain%20Maximal%20Extractable%20Value,-Alexandre%20Obadia%2C%20Alejo&amp;text=The%20multi%2Dchain%20future%20is,bandwidth%20and%20throughput%20of%20cryptocurrency.">Unity is Strength: A Formalization of Cross-Domain Maximal Extractable Value</a>. The paper names Cross-Domain Maximal Extractable Value, which is MEV happened multi-chain. Its researchers study the scenarios in which there exists such an incentive regarding the specific MEV and list negative externalities that might arise from cross-domain MEV extraction. In the end, the authors hope this paper:</p></li></ul><blockquote><p><em>can serve as the basis for formal analysis tools in the style of those presented in Clockwork Finance, as well as for discussion on how to mitigate the upcoming negative externalities of substantial cross-domain MEV.</em></p></blockquote><p>That’s it. Feel free to leave comments if you find these resources useful. And you are more than welcome to recommend your MEV material found by you, or better, made by you.</p><p>In the end, we all need tools and data like our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.io/ethereum/sandwich">Sandwich arbitrage module </a>to bring more openness and honesty to DeFi.</p><hr><p>Follow us via these to dig more hidden wisdom of DeFi:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi">EigenPhi’s Twitter</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/eigenphi_alert">EigenPhi’s Twitter for MEV alert</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eigenphi.substack.com/">Substack</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@eigenphi">Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xc19565163aFdEe3783FC970E4Bd0275B11848d34">Mirror.xyz</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/WisdomOfDeFi">Telegram</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://discord.com/invite/JXD8cyzR2a">Discord</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.getrevue.co/profile/EigenPhi">Revue</a></p></li></ul>]]></content:encoded>
            <author>eigenphi@newsletter.paragraph.com (EigenPhi)</author>
        </item>
    </channel>
</rss>