Skip to content

Commit

Permalink
fix next_change field on balancer_v3_erc4626_token_prices (#7303)
Browse files Browse the repository at this point in the history
* fix next_change field on balancer_v3_erc4626_token_prices

* force run of gnosis liquidity

* final

* force run of gnosis liquidity

* force rerun of balancer_v3_erc4626_token_prices.sql

* remove unnecessary files
  • Loading branch information
viniabussafi authored Dec 12, 2024
1 parent 9f09723 commit 0d95fe0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{
config(
schema = 'balancer_v3_ethereum',
alias = 'erc4626_tokens_mapping',
alias = 'erc4626_token_mapping',
materialized = 'table',
file_format = 'delta'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ SELECT
underlying_token_symbol,
decimals,
APPROX_PERCENTILE(adjusted_price, 0.5) AS median_price,
LEAD(DATE_TRUNC('day', p.evt_block_time), 1, NOW()) OVER (PARTITION BY wrappedToken ORDER BY p.evt_block_time) AS next_change
LEAD(p.evt_block_time, 1, CURRENT_DATE + INTERVAL '1' day) OVER (PARTITION BY wrappedToken ORDER BY p.evt_block_time) AS next_change
FROM price_join p
GROUP BY 1, 2, 3, 4, 5, 6, 7
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{
config(
schema = 'balancer_v3_gnosis',
alias = 'erc4626_tokens_mapping',
alias = 'erc4626_token_mapping',
materialized = 'table',
file_format = 'delta'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ SELECT
underlying_token_symbol,
decimals,
APPROX_PERCENTILE(adjusted_price, 0.5) AS median_price,
LEAD(DATE_TRUNC('day', p.evt_block_time), 1, NOW()) OVER (PARTITION BY wrappedToken ORDER BY p.evt_block_time) AS next_change
LEAD(p.evt_block_time, 1, CURRENT_DATE + INTERVAL '1' day) OVER (PARTITION BY wrappedToken ORDER BY p.evt_block_time) AS next_change
FROM price_join p
GROUP BY 1, 2, 3, 4, 5, 6, 7

0 comments on commit 0d95fe0

Please sign in to comment.