INNER CODE UNIT · Python
_detect_pump_fun_to_pump_swap_migration
FLOCK4H/Dexter · Dexter.py:720
def _detect_pump_fun_to_pump_swap_migration(self, raw_logs):
if not raw_logs:
return False
needles = (
"instruction: migrate",
"instruction: migrate_bonding_curve_creator",
"instruction: migratebondingcurvecreator",
)
for raw_log in raw_logs:
lowered = raw_log.lower()
if any(needle in lowered for needle in needles):
return True
return False
async def _mark_pump_swap_pending(self, mint_id: str, *, reason: str, signature: str | None = None, slot: int | None = None):
mint_state = self.swap_folder.get(mint_id)
if not mint_state:
return