From 1c2cb23b1507a050d3975332d27f6abd9f2bd607 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 5 Dec 2024 20:52:19 +1100 Subject: [PATCH] fix: Update topup search to not need memo message --- server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index 8183c5a..7a929df 100644 --- a/server.py +++ b/server.py @@ -453,9 +453,9 @@ def parseDeposit(data): if 'tokenTransfers' not in tx: continue - # Search for string (TOPUP) - if 'TOPUP' in json.dumps(tx): - print("TOPUP: Skipping deposit") + # Skip memo txs + if 'Memo' in json.dumps(tx): + print("Skipping deposit as it contains memo") print(json.dumps(tx, indent=4)) continue @@ -480,7 +480,7 @@ def parseDeposit(data): stWDBRN_amount = round(stWDBRN_amount, 9) mint_stWDBRN(stWDBRN_amount, transfer['fromUserAccount']) -def mint_stWDBRN(amount, to_user_account): +def mint_stWDBRN(amount, to_user_account): if amount < 0.5: print(f"Skipping minting of {amount} stWDBRN to {to_user_account} as it is less than 0.5", flush=True) return