From 21510af58a53c6c9e81b15421d3aaa6d88c31b0f Mon Sep 17 00:00:00 2001 From: Felix Henneke Date: Wed, 11 Oct 2023 16:40:21 +0200 Subject: [PATCH] Fix query id for slippage accounting (#323) The change to the `period_slippage.sql` query in #322 did not change the dune query called from the code. This resulted in wrong slippage computations from this repository. The Dune dashboards already showed the correct slippage. In this PR, the code in `queries.py` is changed to point to a new Dune query created by cowprotocol. The code of that query is identical to `period_slippage.sql`. --- queries/dune_v2/period_slippage.sql | 2 +- src/queries.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/dune_v2/period_slippage.sql b/queries/dune_v2/period_slippage.sql index 94446cbb..48cb2fe3 100644 --- a/queries/dune_v2/period_slippage.sql +++ b/queries/dune_v2/period_slippage.sql @@ -1,5 +1,5 @@ -- https://github.com/cowprotocol/solver-rewards/pull/322 --- Query Here: https://dune.com/queries/2421375 +-- Query Here: https://dune.com/queries/3093726 with batch_meta as ( select b.block_time, diff --git a/src/queries.py b/src/queries.py index 9c09bf45..1f6c4613 100644 --- a/src/queries.py +++ b/src/queries.py @@ -43,7 +43,7 @@ def with_params(self, params: list[QueryParameter]) -> Query: "PERIOD_SLIPPAGE": QueryData( name="Solver Slippage for Period", filepath="period_slippage.sql", - q_id=2421375, + q_id=3093726, ), "DASHBOARD_SLIPPAGE": QueryData( name="Period Solver Rewards",