Skip to content

Commit

Permalink
remove averaged cow value from cow per batch query
Browse files Browse the repository at this point in the history
this quantity was removed in refactoring everywhere except in this query
  • Loading branch information
fhenneke committed Sep 5, 2024
1 parent 5d6c9e8 commit 3f17005
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 3f17005

Please sign in to comment.