Skip to content

Commit

Permalink
remove filtering from raw slippage per transaction (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhenneke authored Sep 20, 2024
1 parent 529118e commit 874fb18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cowprotocol/accounting/slippage/raw_slippage_4059683.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
2 changes: 1 addition & 1 deletion cowprotocol/accounting/slippage/slippage_4070065.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 874fb18

Please sign in to comment.