Giter Site home page Giter Site logo

lessrekt's Introduction

LessRekt

So you want to become and MEV searcher? The journey to discovering the 'tricks' is often painful, and you will be directly targeted by more experienced searchers. One of the worst ways to get rekt as a new searcher is for your bot to be baited into buying a poisonous token, and they come in many forms.

This repository contains code to build a token whitelist. It is ABSOLUTELY not bulletproof and I'm 100% sure that there are many ways for searchers to sidestep the checks in here, but it is a good starting off point. The grt directory contains code to query all Uniswap V2 pairs from The Graph, and filters for pairs with less than MIN_TX_COUNT transactions. It writes the pairs data to a file. This file is then used to run hardhat simulations which computes the burn fee for each token and writes that data to yet another file. The final file can then be used in-memory for whatever language you use to run your logic for your bot. This is nice because it makes it easy to calculate more accurate profit for your trade as you have token burn fees. There is a contract called BurnCalc.sol that manages the burn calculation. Tokens that are obviously poisonous will cause the simulation to revert, and hence will not be added to the whitelist BUT you will need to add more logic to discover certain classes of poisonous tokens.

I have intentionally left out important logic in the BurnCalc contract that would help avoid other types of poisonous tokens. This is because if you can't understand what needs to be added, then you almost certainly should not be running a bot unless you are willing to lose money for the sake of learning. The current setup will cover simple poison tokens where only the creator of the token is able to sell, leaving you will a worthless pile of ponzi coins.

lessrekt's People

Watchers

 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.