Skip to content

Commit

Permalink
Update balancer_liquidity_macro.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
viniabussafi authored Sep 3, 2024
1 parent 44d187c commit dec31a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt_macros/shared/balancer/balancer_liquidity_macro.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ WITH pool_labels AS (
date_trunc('day', minute) AS day,
contract_address AS token,
decimals,
AVG(price) AS price
APPROX_PERCENTILE(price, 0.5) AS price
FROM {{ source('prices', 'usd') }}
WHERE blockchain = '{{blockchain}}'
GROUP BY 1, 2, 3
Expand Down

0 comments on commit dec31a7

Please sign in to comment.