Skip to content

Commit

Permalink
[EASY] Change slippage wrapper for consistency with old slippage query (
Browse files Browse the repository at this point in the history
#49)

* fix parameter to ethereum for current slippage accounting

* make output column of eth_slippage_wei a float
  • Loading branch information
fhenneke committed Sep 23, 2024
1 parent 0b85268 commit 075ecbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cowprotocol/accounting/slippage/slippage_query_3427730.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ select
solver_address,
concat(environment, '-', name) as solver_name,
slippage_usd as usd_value,
slippage_wei as eth_slippage_wei,
1.0 * slippage_wei as eth_slippage_wei,
concat(
'<a href="https://dune.com/queries/4070065',
'&blockchain={{blockchain}}',
'&blockchain=ethereum',
'&start_time={{start_time}}',
'&end_time={{end_time}}',
'&slippage_table_name=slippage_per_transaction',
'" target="_blank">link</a>'
) as slippage_per_transaction
from "query_4070065(blockchain='{{blockchain}}',start_time='{{start_time}}',end_time='{{end_time}}',slippage_table_name='slippage_per_solver')"
inner join cow_protocol_{{blockchain}}.solvers
from "query_4070065(blockchain='ethereum',start_time='{{start_time}}',end_time='{{end_time}}',slippage_table_name='slippage_per_solver')"
inner join cow_protocol_ethereum.solvers
on solver_address = address

0 comments on commit 075ecbb

Please sign in to comment.