FLOCK4H
Mew-X
Rust

Mythical rarity Trading System; Track popular token creators, snipe in slot 0, buy into migrated tokens dips, and much more... on Pump.fun & Pump.fun AMM.

Last updated Jun 18, 2026
10
Stars
5
Forks
0
Issues
0
Stars/day
Attention Score
29
Language breakdown
Rust 100.0%
Files click to expand
README

mewxxx

High-performance trading bot powered by analytics.

Prerequisities

  • A processor & some electricity
  • Preferably Linux distro
  • PostgreSQL
  • Faith.
  • & an RPC provider

Features

  • Check current consensus leader's location to make decisions
  • A Postgre database hooked into Pump.fun and Pump.fun AMM
  • Integrated SWQoS Services:
- Blox - Jito - Helius - Temporal - ZeroSlot - NextBlock
  • Durable nonce when using SWQoS
  • Choose between gRPC or Websocket
  • Plug-n-play trading strategies:
- Deagles - Creators who funded their wallet (or sub-wallet) with more than X SOL using CEX - VolCreators - Creators from analytics, sorted by volume - GrandChillers - ...sorted by highest market cap - Digged - Doesn't use analytics, checks if the number of transactions between first and n slot from mint's creation is higher or equal to configured number - Dip - Enter into dips of migrated Pump.fun tokens - DevBestFriend - Enter only if the dev is alone in his slot after 100ms, avoids bundlers
  • Configurable trading filters (see .env)
  • Avoids duplicate tokens in both analytics and trading
  • Calculates best priority fee for the transaction

Setup

Download the repository

$ git clone https://github.com/FLOCK4H/Mew-X
$ cd Mew-X

Create databases

$ psql -U yourpostgreuser
$ > CREATE DATABASE vacation;
$ > CREATE DATABASE goldmine;

If you can't psql -U yourpostgreuser you can follow the example below:

$ sudo nano /etc/postgresql/16/main/pg_hba.conf

Modify like this, change peer to trust:

local all postgres trust

TYPE DATABASE USER ADDRESS METHOD

"local" is for Unix domain socket connections only

local all all trust

IPv4 local connections:

host all all 127.0.0.1/32 trust

IPv6 local connections:

host all all ::1/128 scram-sha-256

Allow replication connections from localhost, by a user with the

replication privilege.

local replication all trust host replication all 127.0.0.1/32 scram-sha-256 host replication all ::1/128 scram-sha-256

Set path to your database in the .env file:

DB_URL = "postgres://<user>:<password>@<host>:<port>" # need a valid postgre path

example

DB_URL = "postgres://postgres@127.0.0.1:5432" # need a valid postgre path

Tables will be created on launch.

Configure the .env file

All variables should be self-explanatory, if something isn't clear or you're stuck and need help, please visit Telegram or Discord groups.

Click to see full .env file

PRIVATE_KEY="4knkrbw0238XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
RPC_URL="http://127.0.0.1:8899"
WS_URL="ws://127.0.0.1:8900"
DB_URL = "postgres://<user>:<password>@<host>:<port>" # need a valid postgre path

USE_GRPC = false GRPC_URL="http://127.0.0.1:10000" GRPC_TOKEN="" N # Needed when using SWQoS in TX_STRAT below, otherwise an error happens (thread 'tokio-runtime-worker' panicked).

TX_STRAT = "swqos" # rpc | swqos; TIP: When you've got no keys to anything, no worries, you can still use Helius and Jito, just pass the swqos option. NEXTBLOCK_KEY = "" ZEROSLOTKEY = "" TEMPORAL_KEY = "" BLOX_KEY = "" TIP_SOL = 0.001 PRIORITYFEELVL = "high" # low | medium | high | turbo | max

BUYAMOUNTSOL = 0.0001 SLIPPAGE = 30 MAXTOKENSAT_ONCE = 1 USE_REGIONS = false REGIONS = "Germany, Netherlands, United Kingdom" MAX_LOSS = 10 TAKE_PROFIT = 0 # disabled MINDEVSOLD = 20000000 # min token amount bought by the dev at the start to consider exit-sell with him MAXNOACTIVITY_MS = 60000 # 60 seconds MAXNAONSTARTMS = 5000 # 5 seconds

MODE = "trade" # sim || trade *dynamic, mutable while the program is running DEAGLE_DEBUG = false # true || false MINTRANSFERSOL = 1.0 # Collect potential devs who fund their wallet with X sol from exchanges

ALGO_LIMIT = 100000 # Limit the number of tracked creators ALGOUSEDEAGLES = true # Deagles are creators that have funded their wallet (via exchange) with more than X sol in a single transfer ALGOMINDEAGLE_SOL = 1.0 # Filter out deagle creators by minimum amount they got to have

VolCreators: Creators in the db sorted by volume

ALGOUSEVOLCREATORS=false # true || false ALGOMINVOLUME = 10.0 ALGOMINMINTS = 1 ALGOMINBUYS = 200

GrandChillers: Creators in the db sorted by highest market cap

ALGOUSEGRAND_CHILLERS=false # true || false ALGOGCMIN_HMC = 15000.0 ALGOGCMIN_BUYS = 50 ALGOGCMIN_MINTS = 2

Creator's Holding Percentage - if creator owns more than LOWER or less than UPPER we skip

USE_CHP=true # true || false CHP_LOWER = 0.09 CHP_UPPER = 0.21

Txns in Zero - mimics above; number of txns in the slot where token was created

USE_TIZ=true # true || false TIZ_LOWER = 3 TIZ_UPPER = 12

Additional strat [Digged]: Avoid bundlers, but enter high tx count between n

ENABLE_ABS=false ABSMINBUYS=5 ABSMINVOL=5 # in SOL ABS_N=2

Additional strat [Dip]: Trade on dips of migrated tokens

ENABLE_MTD=true MTD_PCT=20 MTDSTABLETIME=10 # in seconds MTDMINMC=20 # in SOL MTDMAXLOSS=15 # pct MTDTAKEPROFIT=40 # pct

Additional strat: Dev's best friend, avoid bundlers - enter if dev is alone

ENABLE_DBF=true DBFMAXCHP=10

Build & run the project

$ cargo run

First, Mew will fetch locations of nodes participating in the cluster. Indexing of (at the time of writing) 6000+ validators takes around 1.5 hour, we do that to speed up the location checks when trading.

Indexing HrLAr7y9k8qYd14uF5KdTz5z9p9BvZuf1o6cKY255wtD @ 80.240.31.38 -> ("Frankfurt", "Germany")
Indexing B7PbdWDgqc5h5rbTyi5Yyz2e1DJZEMoM3uXoqobk35n9 @ 202.8.11.203 -> ("Singapore", "Singapore")
Indexing Apt9PHrFBt1sji788VzwBYpYensM43eA6qLVybqZrKak @ 65.21.90.166 -> ("Helsinki", "Finland")

(Optional) Development

There are lots of tests in sol.rs of sol_hook, to save you some trouble here is the command:

$ cargo test mew::solhook::sol::tests::testpump_buy -- --exact --no-capture

Socials & Support

Telegram private: @dubskii420

Telegram group: https://t.me/flock4hcave

Discord handle: flockahh

Discord group: https://discord.gg/thREUECv2a

License

Copyright 2025 FLOCK4H

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

© 2026 GitRepoTrend · FLOCK4H/Mew-X · Updated daily from GitHub