Skip to content

Commit

Permalink
Merge pull request #15 from cowprotocol/fix_cow_per_batch
Browse files Browse the repository at this point in the history
Fix CoW query
  • Loading branch information
fhenneke authored Sep 6, 2024
2 parents e877653 + 3f17005 commit e08b25a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cowprotocol/coincidence_of_wants/cow_per_batch_4025739.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ cow_per_token_usd as (
token_address,
naive_cow_potential,
naive_cow,
naive_cow_averaged,
token_price * user_in as user_in,
token_price * user_out as user_out,
token_price * amm_in as amm_in,
Expand Down Expand Up @@ -68,6 +67,5 @@ cow_volume_per_batch as (
select
*,
case when user_out > 0 then naive_cow_potential_volume / user_out end as naive_cow_potential,
case when user_out > 0 then naive_cow_volume / user_out end as naive_cow,
case when user_in + user_out > 0 then naive_cow_averaged_volume / (user_in + user_out) end as naive_cow_averaged
case when user_out > 0 then naive_cow_volume / user_out end as naive_cow
from cow_volume_per_batch

0 comments on commit e08b25a

Please sign in to comment.