Skip to content

Commit

Permalink
fix: reduce unnecessary math and result handling
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Nov 18, 2023
1 parent 5f441ee commit c19f057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yearn/outputs/postgres/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit c19f057

Please sign in to comment.