<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by throw; on Medium]]></title>
        <description><![CDATA[Stories by throw; on Medium]]></description>
        <link>https://medium.com/@0xthrpw?source=rss-a92e92889c1c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ft1aiGgRNj0a81drw8qWOA.jpeg</url>
            <title>Stories by throw; on Medium</title>
            <link>https://medium.com/@0xthrpw?source=rss-a92e92889c1c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:28:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xthrpw/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Monsters of the Dark Forest and their Keepers]]></title>
            <link>https://0xthrpw.medium.com/monsters-of-the-dark-forest-and-their-keepers-dfc30fc51f0e?source=rss-a92e92889c1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfc30fc51f0e</guid>
            <category><![CDATA[mining]]></category>
            <category><![CDATA[miners]]></category>
            <category><![CDATA[mev]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[throw;]]></dc:creator>
            <pubDate>Tue, 08 Dec 2020 21:07:25 GMT</pubDate>
            <atom:updated>2020-12-09T06:39:24.488Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*EY4RflOPqtj_QuZTGeoCnA.png" /><figcaption>always lurking</figcaption></figure><p>I was doing some trading this morning using my favorite dex and one of my transactions was front-run due to me leaving my slippage high from a few (questionable) trades the night before. This irritated me a bit and I’ve been hungrily consuming articles on MEV (Miner Extractable Value), mining tunnels and ‘dark-forest’ related topics lately, so I decided to take the opportunity to do a little investigation on the bot that nailed my transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*pI7yh0IHo2hxSF8rRMn_Ew.png" /><figcaption>the motherfuckers</figcaption></figure><p>I pulled the contract address up for the bot’s contract and it had self-destructed, but the deployer was another contract that was still live. Using etherscan’s ‘decompile bytecode’ tool, I was able to get an abstraction of the logic that the contract was hopefully using to look for front-run opportunities. A quick glance over the decompiled code, and I was able to separate it out into recognizable libraries. The ‘safemath’ library in particular is a bit of a Rosetta Stone in these circumstances, as the math overflow checks are apparent and there are some very telling revert messages (e.g. “revert with 0, ‘mul-overflow’”).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*B0VjvDOvmG3mSCoKlhR8hA.png" /></figure><p>Digging some more, it appeared that I had found a bit of a dead end. Most of the relevant code was just calling for the creation of the actual front-runner contracts and was passing arguments to them on construction. But then I noticed something, a check to see if the block’s coinbase was a certain address (0x99c85bb64564d9ef9a99621301f22c9993cb89e3) and to revert if equal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*8_GkOeE7lo5DibO7Wsjocw.png" /></figure><p>For those unaware or unfamiliar, the coinbase of an ethereum block is the recipient address of the block reward. Meaning that whoever was running this front-runner was conveniently not front-running transactions that were mined by a certain miner. I pulled the address up on etherscan: BeePool.</p><p>After a little pondering, it dawned on me that I was staring at a brick with an advertisement for window repair attached to it.</p><p>* * * * *</p><p>It seems to me that most of the discussion revolving around MEV and mining tunnels of late has a ‘benefit of the doubt’ type tone. For a fee, mining tunnels can protect user’s transactions from being front-run usually by rearranging transaction order in a block, allowing the protected user’s transactions to be processed before the front-runner’s and causing the malicious transactions to fail. And when these tunnels are pitched to us collectively as being a value-add for the space, it is perhaps naively assumed to mean that we are being protected from unseen <em>foreign</em> assailants in the dark forest.</p><p>The code I observed this morning has fortunately shattered that illusion for me. This mining pool is offering protection from being front-run by bots, which is fine by itself. But this proposition seems a bit more Machiavellian when you realize that the pool is running the very bots they are offering to protect you from. Sounds a bit like extortion to me.</p><p>At the risk of sounding hyperbolic, what does it mean for the future of this space, when the monsters in the dark forest are the one’s offering us safe passage for a fee?</p><p>How many other pools out there are doing this?</p><p>How long will it be until safe passage through the dark forest is impossible without an escort?</p><p>-</p><p>Above claims can be independently verified by decompiling the deployed contract bytecode and viewing the result yourself: <a href="https://etherscan.io/bytecode-decompiler?a=0x94edc4a3065a7a42db6c57614e513992b2eb3ee4">https://etherscan.io/bytecode-decompiler?a=0x94edc4a3065a7a42db6c57614e513992b2eb3ee4</a></p><p>Contract bytecode and decompiled code has been pinned on IPFS for further analysis in case contract in question is self-destructed, it can be found here: <a href="https://gateway.pinata.cloud/ipfs/QmdTGPEnejyLES9BnvW5achUeb8QAAHrreywDUszETXk7B">https://gateway.pinata.cloud/ipfs/QmdTGPEnejyLES9BnvW5achUeb8QAAHrreywDUszETXk7B</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfc30fc51f0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>