Skip to content

Instantly share code, notes, and snippets.

View benhenryhunter's full-sized avatar

Benjamin Hunter benhenryhunter

  • $BTCS
  • Michigan
View GitHub Profile

Deconstructing a $2.5M CEX-DEX Arbitrage Bot

Atomic MEV is becoming tougher in recent years as competition intensifies and more skilled teams enter the game. To stay competitive, teams integrate more exchanges and capture untouched arbitrage paths and order flow which is not always trivial, especially when dealing with cross-chain MEV or any non atomic arbitrage.

One common arbitrage is CEX-DEX arbitrage. I've noticed many on-chain bots but never dug deep into their performance until now.

I'll be looking at the bot 0x98C3d3183C4b8A650614ad179A1a98be0a8d6B8E, specifically the transaction 0x6f94aa47e74de8897979fdc3b6e541bb515be9c72f2a912cd548f98e2c11729a USUAL ETH Swap

Investigating the Trade

This token is listed on many exchanges, I'll focus on Bina

package main
import (
"fmt"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/crypto"
)
@osowski
osowski / incept-minikube.sh
Last active April 16, 2020 23:28
Install Minikube, Kubectl, and Virtualbox on Ubuntu
#Installing VirtualBox
echo "Installing VirtualBox........................"
sudo apt-get install virtualbox
#Installing kubectl https://kubernetes.io/docs/getting-started-guides/kubectl/
echo "Installing kubectl..........................."
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.4/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/kubectl