INNER CODE UNIT · Python

handle_single_log

FLOCK4H/Dexter · Dexter.py:457

    async def handle_single_log(self, log, program):
        try:
            if program == PUMP_SWAP:
                await self.handle_pump_swap_log(log)
                return
            clean_log = await self.dexLogs.collect(log, debug=False)
            if clean_log:
                is_mint = clean_log["is_mint"]
                sig = clean_log["sig"]
                slot = clean_log["slot"]
                raw_logs = clean_log.get("raw_logs", [])
                program_data = clean_log["program_data"]

                if self._detect_pump_fun_to_pump_swap_migration(raw_logs):
                    for data in program_data.values():
                        if not isinstance(data, dict):
                            continue
                        migrated_mint = data.get("mint")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…