Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021-2025 draganrakita

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 above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

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.
64 changes: 59 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,63 @@
# Grouper

## PVP
## What is grouper

Grouper is a fourmeme sniper bot built on [Alloy](https://github.com/alloy-rs/alloy) that is triggered by on-chain trading activity to drive its buy and sell decisions.

Features:
- Sends private transactions—no worries about slippage or sandwich attacks
- Uses SQLite for data storage: works out of the box with zero extra config
- Recognizes bundle transactions
- Trades on both Fourmeme and PancakeSwap platforms
- Calculates migration progress
- Integrated with Telegram for real-time alerts on bot activity
- Market-driven execution with highly customizable strategies

## Quick start

1. In the root directory, create a `.env` file based on `.env.example`.

```bash
# account
BOT_PRIVATE_KEY=

# rpc
BLOXROUTE_AUTH_HEADER=
IPC_URL=

# tg bot
TELEGRAM_BOT_TOKEN=
TELEGRAM_BOT_CHAT_ID=
```

2. Update the config base on your strategy, or just use the default strategy for quick start.

3. Start the bot:

1. Add `.env` file
2. Start the bot:
```bash
make pvp
```
cargo run .
```

## Acknowledgements

This forumeme sniper bot only provides a framework and a default trading strategy; it does not guarantee profit. Developers need to conduct their own research and formulate their own trading strategies. Any property loss is not related to this repository.

None of this would have been possible without them, so big shoutout to the materials below:

- [alloy](https://github.com/alloy-rs/alloy): Provided comprehensive and convenient blockchain interaction tools;
- [burberry](https://github.com/tonyke-bot/burberry): Provided a framework for transaction execution, which itself was modified from [artemis](https://github.com/paradigmxyz/artemis/)
- Some very outstanding papers, which provide theoretical assistance:
- [A Midsummer Meme's Dream: Investigating Market Manipulations in the Meme Coin Ecosystem](https://arxiv.org/abs/2507.01963)
- [Ready, Aim, Snipe! Analysis of Sniper Bots and their Impact on the DeFi Ecosystem](https://dl.acm.org/doi/10.1145/3543873.3587612)
- [Token Spammers, Rug Pulls, and SniperBots: An Analysis of the Ecosystem of Tokens in Ethereum and in the Binance Smart Chain (BNB)](https://arxiv.org/abs/2206.08202)











6 changes: 6 additions & 0 deletions doc/paper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Paper
- 2507.01963v1: Systematically introduces the market situation, price manipulation, and various methods of money laundering and running away with the money of Meme tokens. A large amount of data is used as evidence. Its core conclusion is that a significant increase in the price of a Meme token is highly likely to be due to manipulation.

- 3543873.3587612: Discusses the situation of sniping robots on ETH and BSC. How to snipe, the risks of sniping, the returns from sniping, security issues, and how to detect sniping robots.

- 2206.08202v3: Focuses on the connection between sniping robots and RugPull.
7 changes: 0 additions & 7 deletions doc/paper/README_CN.md

This file was deleted.

6 changes: 3 additions & 3 deletions examples/cal_curve_progress.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use alloy::{primitives::address, providers::ProviderBuilder};
use grouper::pvp::abi::Fourmeme::FourmemeInstance;
use grouper::pvp::interface::oracle::IOracle;
use grouper::pvp::trade::oracle::Oracle;
use grouper::abi::Fourmeme::FourmemeInstance;
use grouper::interface::oracle::IOracle;
use grouper::trade::oracle::Oracle;
use std::{env, sync::Arc};

#[tokio::main]
Expand Down
12 changes: 0 additions & 12 deletions research/dataset/4_0x0a43fc31a73013089df59194872ecae4cae14444.md

This file was deleted.

This file was deleted.

Binary file removed research/dataset/assets/image-20251116222302758.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116224242836.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116224817762.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116225350354.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116225513937.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116225759670.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116230207477.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116230353647.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116230852566.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116231017344.png
Binary file not shown.
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116231722655.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116231905950.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116232024470.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116232235576.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116232248774.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116232554314.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251116232833688.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251117144235604.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251117144856079.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251117145015337.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251117145221276.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251117145548996.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251117145715383.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251117150010730.png
Binary file not shown.
Binary file removed research/dataset/assets/image-20251117150234603.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117150420835.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117150556619.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117150717278.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117150813009.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117151144922.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117151502392.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117151527661.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117151759370.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117151936577.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251117175517917.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251129181336123.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251129181501263.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251129182334475.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251129182408596.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251129182713755.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251129182806839.png
Diff not rendered.
Binary file removed research/dataset/assets/image-20251129183053365.png
Diff not rendered.

This file was deleted.

1 change: 0 additions & 1 deletion research/dataset/data.csv

This file was deleted.

28 changes: 0 additions & 28 deletions research/dataset/research.md

This file was deleted.

88 changes: 0 additions & 88 deletions research/dataset/发射之后.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 10 additions & 0 deletions research/models.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Models

![fourmeme-models](./assets/fourmeme-models.png)

- Model A: It's all over.
- Model B: It first sells off to drive down the price, but not too much below the opening price, and then pulls the market back up.
- Model C: Gradually increase the price, suddenly rugpull
- Model D: Rapid surge, then rugpull
- Model E: The price barely changed after the migration, then it was pumped up, and finally, a rugpull occurred.
- Model F: A surge in price, a wave of selling, a single explosive price hike, and finally a rugpull.
15 changes: 0 additions & 15 deletions research/models_CN.md

This file was deleted.

Loading
Loading