From 6538cc085e5414f534e5b239924ab62f094bd2b5 Mon Sep 17 00:00:00 2001 From: Haris Angelidakis <64154020+harisang@users.noreply.github.com> Date: Mon, 23 Dec 2024 18:13:27 +0200 Subject: [PATCH] Update dashboard parameters (#470) This PR addresses the change proposed here: https://github.com/cowprotocol/dune-queries/pull/102 that adds a blockchain parameter in the main rewards dashboard. --- src/fetch/dune.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fetch/dune.py b/src/fetch/dune.py index c68e0d1f..435d86cc 100644 --- a/src/fetch/dune.py +++ b/src/fetch/dune.py @@ -107,16 +107,14 @@ def get_period_slippage(self, job_id: Optional[str] = None) -> list[DuneRecord]: Executes & Fetches results of slippage query per solver for specified accounting period. Returns a class representation of the results as two lists (positive & negative). """ - params = self._period_params() + params = self._network_and_period_params() # trigger dashboard update self.dune.execute( self._parameterized_query(QUERIES["DASHBOARD_SLIPPAGE"], params=params) ) return self._get_query_results( - self._parameterized_query( - QUERIES["PERIOD_SLIPPAGE"], params=self._network_and_period_params() - ), + self._parameterized_query(QUERIES["PERIOD_SLIPPAGE"], params=params), job_id, )