From 179d86e042254405d3d0ad03b14f06557cd6c6f2 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Sat, 18 Nov 2023 16:02:08 -0500 Subject: [PATCH] fix: reduce unnecessary math and result handling (#681) --- yearn/outputs/postgres/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yearn/outputs/postgres/utils.py b/yearn/outputs/postgres/utils.py index 8afc5de0a..9c1d7a622 100644 --- a/yearn/outputs/postgres/utils.py +++ b/yearn/outputs/postgres/utils.py @@ -145,4 +145,4 @@ def fetch_balances(vault_address: str, block=None) -> Dict[str, Decimal]: from user_txs where token_id = $token_dbid group by "from") b on a.wallet = b.wallet """) - return {wallet: balance for wallet, balance in balances if wallet != ZERO_ADDRESS} + return {wallet: balance for wallet, balance in balances if wallet != ZERO_ADDRESS and balance}