Skip to content

Commit

Permalink
Update dashboard parameters (#470)
Browse files Browse the repository at this point in the history
This PR addresses the change proposed here:
cowprotocol/dune-queries#102
that adds a blockchain parameter in the main rewards dashboard.
  • Loading branch information
harisang authored Dec 23, 2024
1 parent d2b1e4a commit 6538cc0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/fetch/dune.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit 6538cc0

Please sign in to comment.