Git Product home page Git Product logo

unibot's Introduction

Unibot

Bot to constantly monitor and buy new potentially "quality" Uniswapv2 Listings

Components:

a) mask.sol is a basic implementation of the Uniswap v2 router to allow you to buy tokens without sending transactions directly to the Uniswap router (which other bots are constantly monitoring). Deploy this using remix.ethereum.org from the address that will be doing the trading and input the contract address into the main script.

b) main.py is the script that is constantly running looking for snipable tokens. For this to run properly you need:

  1. Install requirements.txt or git clone the entire repo for package dependencies in venv
  2. An etherscan API key
  3. An infura/quiknode https endpoint
  4. A deployed mask.sol contract address
  5. Highly recommended you use botfather on telegram to make a new bot and chat with it to keep track of everything. Input the bot token and chat id into the script, it uses https://github.com/eternnoir/pyTelegramBotAPI

You can mess around with the parameters and trade sizes based on liquidity, also slippage.

Ape logic:

  1. Unibot only buys verified etherscan contracts (bytecode typically scam, unless contract address was announced before)
  2. We screen out most honeypot contracts that have bad transfer functions or are otherwise malicious by have it read the code
  3. We only buy projects with <X amount of holders at listing and liquidity within a certain range
  4. We only buy projects that have a telegram group, not channels, or verifiable unique website in the contract (too hit or miss with others)

Potential improvements:

  1. Look at the mempool. Current function will only allow for the sniping of listings in the block after the listing
  2. Expand to Sushi, any other Uniswapv2 like router. Can use a similar structure across PancakeSwap as well
  3. Submit transactions normally as well as Flashbots to up chance of being included in a block

Disclaimers: For educational purposes only. This is purely beta software and if you dont know what you are doing and updating the logic you will probably lose money. Use at your own risk. This is not being maintained.

unibot's People

Contributors

vikramarun 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.