diff --git a/cowprotocol/accounting/fees/protocol_fees_by_order_class_3703312.sql b/cowprotocol/accounting/fees/protocol_fees_by_order_class_3703312.sql index abfafb0..69bb432 100644 --- a/cowprotocol/accounting/fees/protocol_fees_by_order_class_3703312.sql +++ b/cowprotocol/accounting/fees/protocol_fees_by_order_class_3703312.sql @@ -59,6 +59,6 @@ inner join cow_protocol_{{blockchain}}.trades as t left join dune.cowprotocol.result_cow_protocol_{{blockchain}}_app_data as a on t.app_data = a.app_hash where block_number >= (select start_block from block_range) - and block_number < (select end_block from block_range) + and block_number <= (select end_block from block_range) group by 1 order by 1 desc