-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- rename transfer_type to type - rename fee_data to raw_fee_data - reorder columns for consistency - fix some comments - rename price to price_unit - rename slippage_native_atom to slippage_wei
- Loading branch information
Showing
5 changed files
with
33 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
cowprotocol/accounting/slippage/slippage_per_solver_4070065.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
-- This query return slippage per transaction | ||
-- This query returns slippage per solver over a period of time, | ||
-- evaluated in both usd and the native token of the chain. | ||
-- | ||
-- Parameters: | ||
-- {{start_time}} - the timestamp for which the analysis should start (inclusively) | ||
-- {{end_time}} - the timestamp for which the analysis should end (exclusively) | ||
-- {{blockchain}} - network to run the analysis on | ||
-- | ||
-- The columns of the result are | ||
-- - block_time: time of settlement transaction | ||
-- - tx_hash: settlement transaction hash | ||
-- - solver_address: address of the solver executing the settlement | ||
-- - slippage_usd: USD value of slippage | ||
-- - slippage_native_atom: value of slippage in atoms of native token | ||
-- - slippage_wei: value of slippage in atoms of native token | ||
|
||
select | ||
solver_address, | ||
sum(slippage_usd) as slippage_usd, | ||
sum(slippage_native_atom) as slippage_native_atom | ||
sum(slippage_wei) as slippage_wei | ||
from "query_4070059(blockchain='{{blockchain}}',start_time='{{start_time}}',end_time='{{end_time}}')" | ||
group by solver_address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters