Skip to content

mauricedesaxe/geiger.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toxic flow detector

Toxic flow = MEV, bots, wash trading, etc. I am building a proof of concept to index DEX transactions and detect toxic flow. I believe I’ll be able to find a significant amount of trading volume is toxic. This is a work in progress as of right now.

Version 1 planning

We will use sample/fake data so we make our lives easier, not having to index it.

The important part of the version 1 is defining a toxic flow algorithm.

A few simple heuristics we can start from:

  • wallet A has 2 swaps in the same block around 1 swap from wallet B = maybe sandwich? could then look into gas prices, slippage, price impact, etc.
  • bought within first N blocks of token launch = maybe snipe bot? could then look into gas prices, % of initial supply bought, if there were other similar tx within the timeframe, if it was from a smart contract instead of a wallet
  • same token pair traded on multiple exchanges in the same block / short timeframe = maybe arbitrage bot? could then look if price difference between exchanges is bigger than a certain threshold
  • bought and sold immediately after each other = maybe wash trading? could then look if there was any meaningful price difference

Interesting ideas for version 2 (no hard plan)

Cluster analysis

  1. flag a wallet as having toxic flow
  2. look at all wallets that have interacted with flagged wallet as well (maybe some are seeders and can lead us to other toxic wallets)

Use real transactions

About

A proof of concept to index DEX transactions and detect toxic flow (MEV, wash trading, etc)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages