From ea863f859865a497e964fccd32d6d28583a1acf6 Mon Sep 17 00:00:00 2001 From: Alexis Pentori Date: Fri, 23 Feb 2024 18:06:34 +0100 Subject: [PATCH] wallet-fetcher: removing invalid limitation Token with owner ad VOID_ADDRESS can be valid, example SAI Signed-off-by: Alexis Pentori --- wallet-fetcher/source_wallet_fetcher/utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/wallet-fetcher/source_wallet_fetcher/utils.py b/wallet-fetcher/source_wallet_fetcher/utils.py index 53ee39b..e089158 100644 --- a/wallet-fetcher/source_wallet_fetcher/utils.py +++ b/wallet-fetcher/source_wallet_fetcher/utils.py @@ -13,8 +13,6 @@ def check_token_validity(tokenInfo): raise Exception('Invalid token: decimal fields not present: %s', tokenInfo) if tokenInfo.get("decimals") == INVALID_DECIMAL_NUMBER: raise Exception('Invalid token: decimal fields invalid: %s', tokenInfo) - if "owner" in tokenInfo and tokenInfo.get("owner") == VOID_ADDRESS: - raise Exception('Invalid token: Owner address is void: %s', tokenInfo) def extract_token(wallet_name, token_data): description= 'No description available' if 'description' not in token_data['tokenInfo'] else token_data['tokenInfo']['description']