feat: ignore txs with topup
All checks were successful
Build Docker / BuildImage (push) Successful in 36s

This commit is contained in:
Nathan Woodburn 2024-12-05 20:27:57 +11:00
parent 508acf2bc3
commit 2734cddbde
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -453,6 +453,12 @@ def parseDeposit(data):
if 'tokenTransfers' not in tx: if 'tokenTransfers' not in tx:
continue 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']: for transfer in tx['nativeTransfers']:
if transfer['toUserAccount'] != str(vault_sol_address): if transfer['toUserAccount'] != str(vault_sol_address):
continue continue