Skip to content

Commit

Permalink
Merge pull request #161 from Synthetixio/fix-dupes
Browse files Browse the repository at this point in the history
Bug: Fix duplicate records
  • Loading branch information
Tburm authored Dec 26, 2024
2 parents 7867924 + 371f8cc commit 6b6cc07
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ hourly_rewards as (
select
ts,
pool_id,
collateral_type,
lower(collateral_type) as collateral_type,
sum(rewards_usd) as rewards_usd
from
(
Expand All @@ -197,7 +197,7 @@ hourly_rewards as (
rewards_usd
from pool_rewards
) as all_rewards
group by ts, pool_id, collateral_type
group by ts, pool_id, lower(collateral_type)
),

hourly_returns as (
Expand Down

0 comments on commit 6b6cc07

Please sign in to comment.