/univ2-tri-arb

Uniswap v2 triangular arbitrage in rust

Primary LanguageRustMIT LicenseMIT

Univ2-Tri-Arb

Warning Absolute Garbage Code Ahead

This code actually still works! Just git clone the repository and use cargo run -r. If you want to check taxes or ensure the pairs are valid, just run cargo run -r load, This will make a fresh db.json file with all the taxes collected and valid pairs.

Use case

For learning and reusing components such as a uni v2 token tax checker, a generalized framework for arbitrage, etc...

This code is an absolute mess and is highly discoraged to run in prod.

Came across this while cleaning up my computer. Instead of trashing it, thought it could help newbies starting out. glglgl!

example