Skip to content

A sandwich making machine to perform sandwich attacks written in Rust and Huff

License

Notifications You must be signed in to change notification settings

phureewat29/sandwich-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sandwich Maker license

A sandwich-making machine to perform Uniswap V2/V3 sandwich attacks written using Rust and Huff.

Brief Explanation

Anytime that a transaction interacts with a Uniswap V2/V3 pool and its forks, there is some slippage introduced (routers, aggregators, other MEV bots). Bot will profit off this slippage by frontrunning the transaction pushing the price of an asset up to the slippage limit, and then immediately selling the asset through a backrun transaction.

Bot Logic Breakdown can be found under bot/README.md

Contract Logic Breakdown can be found under contract/README.md

Features

  • Fully Generalized: Sandwich any tx that introduces slippage.
  • V2 and V3 Logic: Logic to handle Uniswap V2/V3 pools.
  • Multi-Meat: Build and send multi-meat sandwiches.
  • Gas Optimized: Contract written in Huff for gas optimizations.
  • Local Simulations: Fast concurrent EVM simulations to find sandwich opportunities.
  • Salmonella Checks: Detect if ERC20's transfer function uses any unusual opcodes that may produce different mainnet results.

Warning

This software is highly experimental and should be used at your own risk. Although tested, this bot is experimental software and is provided on an "as is" and "as available" basis under the MIT license. We cannot guarantee the stability or reliability of this codebase and are not responsible for any damage or loss caused by its use. We do not give out warranties.

Acknowledgments

About

A sandwich making machine to perform sandwich attacks written in Rust and Huff

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published