From 2734cddbde2860dce06a7a63866b868f26c77eb1 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 5 Dec 2024 20:27:57 +1100 Subject: [PATCH] feat: ignore txs with topup --- server.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server.py b/server.py index ab4ec7a..8183c5a 100644 --- a/server.py +++ b/server.py @@ -453,6 +453,12 @@ def parseDeposit(data): if 'tokenTransfers' not in tx: continue + # Search for string (TOPUP) + if 'TOPUP' in json.dumps(tx): + print("TOPUP: Skipping deposit") + print(json.dumps(tx, indent=4)) + continue + for transfer in tx['nativeTransfers']: if transfer['toUserAccount'] != str(vault_sol_address): continue