Giter Site home page Giter Site logo

w346489584 / subway-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from refcell/subway-rs

2.0 0.0 0.0 11.04 MB

An extensible and practical demonstration of constructing evm-based sandwich attacks built with ethers-rs and Huff language.

Home Page: https://github.com/refcell/subway-rs

License: MIT License

Rust 79.38% Dockerfile 1.32% Solidity 19.30%

subway-rs's Introduction

subway-rs • ci license twitter

Construct evm-based sandwich attacks using Rust and Huff.

Getting Started

subway-rs is a port of libevm's original subway, implemented with ethers-rs and huff.

Having highly optimized contracts is just one part of the equation, a tech stack is just as important as the contracts to execute on the opportunities. Source: libevm/subway

To improve upon the original tech stack, we use rust: the best language available for speed, dependability, and scalability (not biased).

This is subway-rs: A pure-rust bot and Huff smart contracts used to execute sandwich attacks on UniswapV2.

The goal is to act as a low barrier of entry for huff and rust-based MEV development; a sort-of reference code for aspiring new searchers.

We're building it to be fast. But don't take our word for it, just check out the benchmarks.

Current capabilities:

  • Watch pending transactions in the mempool.
  • Decode Transaction data for Uniswap V2 Calls. (and more soon!)
  • Search for profitable strategies efficiently using a variety of algorithms.
  • Calculate gas bribes.
  • Simulate and Execute Flashbot Bundles.
  • Verbose telemetry reporting using tracing.

Future Improvements

Note

Be aware, this bot is intended to be educational content and not for production use.

Although the bot functions, it is simplistic and certainly not competitive. Accept that advanced searchers to already be executing far beyond the current capabilities.

That being said, a list of future improvements are tagged with the feat: prefix in the issues section of this repository.

Contributing

All contributions are welcome!

Please reach out to asnared on twitter or open an issue for any questions, improvements, or bugs.

Attributions

Noteworthy Mentions

subway-rs's People

Contributors

degatchi avatar exp-table avatar maddiaa0 avatar refcell avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.