Skip to content

Commit b39ce16

Browse files
authored
update net transfers to read from chain-specific sources (#7765)
* update net transfers to read from chain-specific sources * for CI, run incremental only * Revert "for CI, run incremental only" This reverts commit ae760f4.
1 parent d001c85 commit b39ce16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dbt_subprojects/tokens/macros/transfers/net_transfers.sql

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ with raw_transfers as (
88
, 'sent' as transfer_direction
99
, (sum(amount_usd) * -1) as transfer_amount_usd
1010
from
11-
{{ ref('tokens_transfers') }}
11+
{{ ref('tokens_'~blockchain~'_transfers') }}
1212
where
1313
blockchain = '{{blockchain}}'
1414
{% if is_incremental() %}
@@ -29,7 +29,7 @@ with raw_transfers as (
2929
, 'received' as transfer_direction
3030
, sum(amount_usd) as transfer_amount_usd
3131
from
32-
{{ ref('tokens_transfers') }}
32+
{{ ref('tokens_'~blockchain~'_transfers') }}
3333
where
3434
blockchain = '{{blockchain}}'
3535
{% if is_incremental() %}
@@ -118,7 +118,7 @@ with raw_transfers as (
118118
, (sum(amount_usd) * -1) as transfer_amount_usd
119119
, count(*) transfer_count
120120
from
121-
{{ ref('tokens_transfers') }}
121+
{{ ref('tokens_'~blockchain~'_transfers') }}
122122
where
123123
blockchain = '{{blockchain}}'
124124
{% if is_incremental() %}
@@ -144,7 +144,7 @@ with raw_transfers as (
144144
, sum(amount_usd) as transfer_amount_usd
145145
, count(*) transfer_count
146146
from
147-
{{ ref('tokens_transfers') }}
147+
{{ ref('tokens_'~blockchain~'_transfers') }}
148148
where
149149
blockchain = '{{blockchain}}'
150150
{% if is_incremental() %}

0 commit comments

Comments
 (0)