Add Pumpfun mayhem mode detection#92
Open
TornGuard wants to merge 2 commits intocxcx-ai:mainfrom
Open
Conversation
added 2 commits
November 14, 2025 16:42
- Added Axiom (BLUR9cL8HqZzu5bSaC7VRX25RCG93Hv3T6NPyKxQhWUT) to DEX_PROGRAMS - Added Padre (9Fox6i7oT8p4qHn76Qj3dks8RRMGsXQyfMSBScA5yVyX) to DEX_PROGRAMS - Updated README.md Trading Bots section - Both tested with live mainnet transactions
Implements detection for Pumpfun's new mayhem mode feature. Changes: - Added isMayhemMode field to TradeInfo, MemeEvent, and Pumpswap event types - Added mayhem fee recipient to FEE_ACCOUNTS constant - Implemented detection logic in Pumpfun and Pumpswap event parsers - Mayhem mode is detected by checking for the mayhem fee recipient account Technical details: - Mayhem fee recipient: GesfTA3X2arioaHp8bbKdjG9vJtskViWACZoYvxp4twS - Detection works for both bonding curve and Pumpswap trades - isMayhemMode flag is set to true when mayhem fee recipient is present Closes cxcx-ai#90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements detection for Pumpfun's new mayhem mode feature as requested in #90.
What is Mayhem Mode?
Mayhem mode is an optional feature for Pumpfun tokens created with the
create_v2instruction. Coins with mayhem mode enabled use a different fee recipient account (GesfTA3X2arioaHp8bbKdjG9vJtskViWACZoYvxp4twS).Changes
Type Definitions
isMayhemMode?: booleanfield toTradeInfointerface (src/types/trade.ts)isMayhemMode?: booleanfield toMemeEventinterface (src/types/meme.ts)isMayhemMode: booleanfield toPumpswapBuyEventandPumpswapSellEventinterfaces (src/types/pumpswap.ts)Constants
FEE_ACCOUNTSarray (src/constants/programId.ts)Detection Logic
Technical Details
GesfTA3X2arioaHp8bbKdjG9vJtskViWACZoYvxp4twSprotocolFeeRecipientfield equals mayhem fee recipientisMayhemModeis set totruewhen detected, making it easy for users to identify mayhem mode tradesTesting
Example Usage
Closes #90