generated from nathanwoodburn/python-webserver-template
feat: ignore txs with topup
All checks were successful
Build Docker / BuildImage (push) Successful in 36s
All checks were successful
Build Docker / BuildImage (push) Successful in 36s
This commit is contained in:
parent
508acf2bc3
commit
2734cddbde
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user