Skip to content

Releases: JayArrowz/PancakeTokenSniper

Honeypot check & much faster trading

31 Aug 18:15
Compare
Choose a tag to compare
  • Optimisations made to the processor, now it doesn't create a processor per block much lighter on CPU
  • Added honeypot check a small buy and sell test to see if token can be sold
  • Fixed profit percentage

Fixes & features to display

31 Aug 16:43
Compare
Choose a tag to compare
  • Now displays token symbol when the sniper discovers a new LP
  • Ensures liquidity pool % is displayed as a decimal instead of fraction
  • Fix logging to Sniper.LOG file

Initial Release

30 Aug 14:31
9de5942
Compare
Choose a tag to compare

PancakeSwap Token Sniper

BSC BNB Pancake token sniper
The BSC token sniper listens for new blocks on BSC relating to the pancake swap factory contract. The createPair log event is emitted on the pancake swap factory whenever a new liquidity pool is added. The sniper will filter the logs from these blocks to find these createPair events. Then with the correct RUG checks it will buy the token, after a certain amount of profit has been made it will automatically sell the token.

Donations

This is a free project but any funding is appricated.
ETH/BNB: 0x71f74dEbb7fd42E61de32256537284E06DE8812d

Socials

Telegram: https://t.me/joinchat/pW9TyMXOkx03Nzg0

Prerequisites

  • Net5.0 (Only need this if you are trying to run the code otherwise please see releases it provides binaries)

Config

The Config is listed in appsettings.json There are values which you will have to set yourself, these are denoted with xxx.

Bsc Node and Http Api

Inside the config you will see BscHttpApi and BscNode keys.
Both are obtained from https://moralis.io for free. You will have to navigate to Speedy Notes and click endpoints on the Bsc Network.
image

Remember BscNode should be WS mainnet Endpoints and BscHttpApi should be Http endpoints
image

Running the project

If you want to run the project you can go to releases and a binary that will execute on your OS, or install Net5.0 then compile and run the application. You can use dotnet run BscTokenSniper to do this.

Rug Checks

There are specific checks involved that this sniper does when buying tokens. Some config values in appsettings.json inside SniperConfiguration are used to influence the rug checks. You can disable the Rug checks by setting the RugCheckEnabled to false. Be warned this is dangerous.

  1. Minimum % total supply in the liquidty pool. The config relating this value is called MinimumPercentageOfTokenInLiquidityPool. A example of this is if you want the token ZZZ to have atleast 90 percent of its supply inside the liqudity pool you can set this value to 90.
  2. The ability to scan contract source code and exclude buying from contracts when they include a specific string. The config key is called ContractRugCheckStrings
  3. Minimum amount of BNB (This can be changed to any other token by using LiquidityPairAddress) inside liquidity pool. The config key is called MinLiquidityAmount.
  4. Ensures liquidty pair created has one of the LiquidityPairAddress address

Selling

The Sniper automatically sells once a certain percentage of profit is made. This is defined in the config key ProfitPercentageMargin

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

TODO

  • Support Uniswap and other liquidity providers
  • Persist bought assets on Postgres
  • Honeypot test (Single buy and sell at a low price)