From 874fb18e72bec5f06dc6703ee2c28bac4b642c88 Mon Sep 17 00:00:00 2001 From: Felix Henneke Date: Fri, 20 Sep 2024 16:38:51 +0200 Subject: [PATCH] remove filtering from raw slippage per transaction (#45) --- cowprotocol/accounting/slippage/raw_slippage_4059683.sql | 1 - cowprotocol/accounting/slippage/slippage_4070065.sql | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cowprotocol/accounting/slippage/raw_slippage_4059683.sql b/cowprotocol/accounting/slippage/raw_slippage_4059683.sql index 2420d200..3b9ef88f 100644 --- a/cowprotocol/accounting/slippage/raw_slippage_4059683.sql +++ b/cowprotocol/accounting/slippage/raw_slippage_4059683.sql @@ -90,7 +90,6 @@ raw_slippage_per_transaction as ( sum(slippage_wei) as slippage_wei from raw_slippage_breakdown group by 1, 2 - having bool_and(slippage_wei is not null or slippage_atoms = 0) ) select * from {{raw_slippage_table_name}} diff --git a/cowprotocol/accounting/slippage/slippage_4070065.sql b/cowprotocol/accounting/slippage/slippage_4070065.sql index 99487763..9a29957a 100644 --- a/cowprotocol/accounting/slippage/slippage_4070065.sql +++ b/cowprotocol/accounting/slippage/slippage_4070065.sql @@ -34,7 +34,7 @@ slippage_per_transaction as ( solver_address, sum(slippage_usd) as slippage_usd, sum(slippage_wei) as slippage_wei - from "query_4059683(blockchain='{{blockchain}}',start_time='{{start_time}}',end_time='{{end_time}}',raw_slippage_table_name='raw_slippage_per_transaction')" as rs + from "query_4059683(blockchain='{{blockchain}}',start_time='{{start_time}}',end_time='{{end_time}}',raw_slippage_table_name='raw_slippage_breakdown')" as rs inner join cow_protocol_{{blockchain}}.batches as b on rs.tx_hash = b.tx_hash where rs.tx_hash not in (select tx_hash from excluded_batches)