diff --git a/df_py/volume/queries.py b/df_py/volume/queries.py index 953e3b311..1355dc738 100644 --- a/df_py/volume/queries.py +++ b/df_py/volume/queries.py @@ -524,15 +524,14 @@ def _queryVolsOwners( # add gas cost value if gasCost > 0: + if order["tx"] in txgascost: + continue if native_token_addr not in gasvols: gasvols[native_token_addr] = {} - if nft_addr not in gasvols[native_token_addr]: gasvols[native_token_addr][nft_addr] = 0 - - if order["tx"] not in txgascost: - txgascost[order["tx"]] = gasCost - gasvols[native_token_addr][nft_addr] += gasCost + txgascost[order["tx"]] = gasCost + gasvols[native_token_addr][nft_addr] += gasCost if lastPriceValue == 0: continue