Spaces:
Sleeping
Sleeping
Update: remove all sssss wallets and bundlers, 20k MC filter (70k RH), mandatory description, charity buyback bypass, entry calls with rich signals
Browse files345 unmodified lines34634734834935035135235335420 unmodified lines3753763773783793803811 unmodified line38338438538638738838939039139239339439539639739888 unmodified lines48748848949049149249349449549689 unmodified lines586587588589590591592593594345 unmodified linessig=sig)# 2. Check for token buys (Bypasses 1.0 SOL min for No-Filter wallets & Bundler collective tracking)is_bundler = (addr in getattr(self.cluster_engine, "sssss_bundler_wallets", set()))effective_min = 0.05 if (is_nf or is_bundler) else min_buy_solbuy_info = self.parse_solana_transaction_for_buy(tx_res, addr, min_buy_sol=effective_min)if buy_info:mint = buy_info["mint"]20 unmodified linesif signal:mc = token_details.get("market_cap", 0)# Filter 1: Mandatory Coin Description - ENFORCED NO MATTER THE WALLETdev_desc = (token_details.get("description") or token_details.get("dev_description") or token_details.get("lore") or "").strip()is_placeholder = dev_desc.lower() in [".", "-", "none", "n/a", "no description", "test", "null", "no lore"] or len(dev_desc) < 3has_description = bool(dev_desc) and not is_placeholder1 unmodified linelogger.info(f"🚫 [NO COIN DESCRIPTION] Skipping alert for {mint}: Coin created without developer description.")continue# Filter 2: Max Market Cap ($20k for regular wallets)# Asides ssss and its bundlers, the filter of the rest wallets: max marketcap is 20kis_main_sssss = (addr == "sssssDdMNAWKingjpEojkTNdVuZrBe7FsJLaGtexe7d")is_bundler_conv = (signal.get("type") == "SSSSS_BUNDLE_CLUSTER")if not (is_main_sssss or is_bundler_conv):if mc > 0 and mc > max_mc:logger.info(f"Skipping alert for {mint}: MC ${mc:,.0f} exceeds max ${max_mc:,.0f}")continue# Volume > MC filter removed per user specificationcard_text = format_telegram_card(token_details, signal)await self.alert_callback(card_text, token_details.get("image_url"), mint)except Exception as e:88 unmodified lineslogger.info(f"🚫 [NO COIN DESCRIPTION] Skipping BSC alert for {mint}: Coin created without developer description.")continue# Filter 2: Max Market Cap ($20k)if mc > 0 and mc > max_mc:logger.info(f"Skipping BSC alert for {mint}: MC ${mc:,.0f} exceeds max ${max_mc:,.0f}")continuecard_text = format_telegram_card(token_details, signal)await self.alert_callback(card_text, token_details.get("image_url"), mint)89 unmodified linescontinue# Filter 2: Max Market Cap ($70k for Robinhood)if mc > 0 and mc > max_mc_rh:logger.info(f"Skipping Robinhood alert for {mint}: MC ${mc:,.0f} exceeds Robinhood max ${max_mc_rh:,.0f}")continuecard_text = format_telegram_card(token_details, signal)await self.alert_callback(card_text, token_details.get("image_url"), mint)345 unmodified lines34634734834935035135235320 unmodified lines3743753763773783793801 unmodified line38238338438538638738838939039139239339488 unmodified lines48348448548648748848949049149249349489 unmodified lines584585586587588589590591592593594345 unmodified linessig=sig)# 2. Check for token buyseffective_min = 0.01 if is_nf else min_buy_solbuy_info = self.parse_solana_transaction_for_buy(tx_res, addr, min_buy_sol=effective_min)if buy_info:mint = buy_info["mint"]20 unmodified linesif signal:mc = token_details.get("market_cap", 0)# Filter 1: Mandatory Coin Description - ENFORCED FOR ALL COINSdev_desc = (token_details.get("description") or token_details.get("dev_description") or token_details.get("lore") or "").strip()is_placeholder = dev_desc.lower() in [".", "-", "none", "n/a", "no description", "test", "null", "no lore"] or len(dev_desc) < 3has_description = bool(dev_desc) and not is_placeholder1 unmodified linelogger.info(f"🚫 [NO COIN DESCRIPTION] Skipping alert for {mint}: Coin created without developer description.")continue# Filter 2: Max Market Cap ($20k for Solana)# Special interest: Charity coins with buybacks attached bypass max MC!if not is_cb:if mc > 0 and mc > max_mc:logger.info(f"Skipping alert for {mint}: MC ${mc:,.0f} exceeds max ${max_mc:,.0f}")continuecard_text = format_telegram_card(token_details, signal)await self.alert_callback(card_text, token_details.get("image_url"), mint)except Exception as e:88 unmodified lineslogger.info(f"🚫 [NO COIN DESCRIPTION] Skipping BSC alert for {mint}: Coin created without developer description.")continue# Filter 2: Max Market Cap ($20k for BSC)# Special interest: Charity coins with buybacks attached bypass max MC!if not is_cb:if mc > 0 and mc > max_mc:logger.info(f"Skipping BSC alert for {mint}: MC ${mc:,.0f} exceeds max ${max_mc:,.0f}")continuecard_text = format_telegram_card(token_details, signal)await self.alert_callback(card_text, token_details.get("image_url"), mint)89 unmodified linescontinue# Filter 2: Max Market Cap ($70k for Robinhood)# Special interest: Charity coins with buybacks attached bypass max MC!if not is_cb:if mc > 0 and mc > max_mc_rh:logger.info(f"Skipping Robinhood alert for {mint}: MC ${mc:,.0f} exceeds Robinhood max ${max_mc_rh:,.0f}")continuecard_text = format_telegram_card(token_details, signal)await self.alert_callback(card_text, token_details.get("image_url"), mint)
tracker_listener.py+17-17