Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.33 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.33 KB

MEV Template for Go

Inspired by DeGatchi.

Simple, robust MEV Bot template for Go.This repo comes with the following features and more.

  • A robust structure for developing long tail and short tail strategies
  • Mempool monitoring, decoding
  • Using GraphQL for querying uniswap v2 pairs
  • Uniswap v2 implementation
    • Uniswap v2 math functions (getAmountIn and getAmountOut)
    • Query of top 1000 pairs in eth sorted by liquidity
    • Transaction input decoding
  • Contract bindings

/Cmd

for all binaries, eg: bot, data analysis tool , etc...

/Contract modules

implementations of data collection, math functions, etc... per contract

/Executor

for building transaction payload, memory sharing to transfer transaction to geth, etc...

/Recon

for getting live data from blockchain. pending transactions, blocks, contract data, etc...

/Types

global types which require module level access

/Logic

internal bot logic

Building and testing

run python ./bot-builder.py build for building the bot, test and other commands are to be implemented by the user

Quick Start

  • Get rpc urls.
  • Import your private key.
  • For testing, run python ./bot-builder.py test (implementation expected by user)
  • For production, run python ./bog-builder.py build