Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
Synthquest committed Nov 21, 2024
1 parent bbedd5c commit 0fa32aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ with
{{ source('tokens_solana', 'stablecoins')}}
)

, updated_balances as (
, balance_base as (
select
day
, bal.token_balance_owner
Expand All @@ -43,7 +43,7 @@ with

select tt.day, tt.token_balance_owner
, tt.symbol
, COALESCE(nf.token_balance, last_value(nf.token_balance) IGNORE NULLS OVER (PARTITION BY tt.token_balance_owner, tt.token_mint_address ORDER BY nf.block_time)) AS token_balance
, COALESCE(nf.token_balance, last_value(nf.token_balance) IGNORE NULLS OVER (PARTITION BY tt.token_balance_owner, tt.token_mint_address ORDER BY nf.day)) AS token_balance
, tt.token_mint_address

from time_table tt
Expand Down

0 comments on commit 0fa32aa

Please sign in to comment.