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:
- Install requirements.txt or git clone the entire repo for package dependencies in venv
- An etherscan API key
- An infura/quiknode https endpoint
- A deployed mask.sol contract address
- 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.
- Unibot only buys verified etherscan contracts (bytecode typically scam, unless contract address was announced before)
- We screen out most honeypot contracts that have bad transfer functions or are otherwise malicious by have it read the code
- We only buy projects with <X amount of holders at listing and liquidity within a certain range
- We only buy projects that have a telegram group, not channels, or verifiable unique website in the contract (too hit or miss with others)
- Look at the mempool. Current function will only allow for the sniping of listings in the block after the listing
- Expand to Sushi, any other Uniswapv2 like router. Can use a similar structure across PancakeSwap as well
- Submit transactions normally as well as Flashbots to up chance of being included in a block