From 683eeab207df39f49f6964b46d965710fb2560d0 Mon Sep 17 00:00:00 2001 From: AIDataMaster Date: Tue, 21 Jan 2025 20:13:50 +0200 Subject: [PATCH 1/5] Update Event Models for GMX v2 --- .../gmx/event/arbitrum/gmx_v2_arbitrum_event_schema.yml | 6 ++++++ .../arbitrum/gmx_v2_arbitrum_withdrawal_created.sql | 9 +++++++++ .../avalanche_c/gmx_v2_avalanche_c_event_schema.yml | 6 ++++++ .../gmx_v2_avalanche_c_withdrawal_created.sql | 9 +++++++++ .../models/_project/gmx/event/gmx_v2_event_schema.yml | 6 ++++++ .../_project/gmx/event/gmx_v2_withdrawal_created.sql | 3 +++ .../gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql | 2 +- .../gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql | 2 +- 8 files changed, 41 insertions(+), 2 deletions(-) diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/arbitrum/gmx_v2_arbitrum_event_schema.yml b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/arbitrum/gmx_v2_arbitrum_event_schema.yml index 282257410ac..7abdfeff63b 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/arbitrum/gmx_v2_arbitrum_event_schema.yml +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/arbitrum/gmx_v2_arbitrum_event_schema.yml @@ -2134,6 +2134,10 @@ models: description: The address of the callback contract associated with the withdrawal. - name: market description: The market associated with the withdrawal. + - name: long_token_swap_path + description: The swap path for the long token. + - name: short_token_swap_path + description: The swap path for the short token. - name: market_token_amount description: The amount of market tokens involved in the withdrawal. - name: min_long_token_amount @@ -2146,6 +2150,8 @@ models: description: The execution fee for processing the withdrawal. - name: callback_gas_limit description: The gas limit for the callback associated with the withdrawal. + - name: withdrawal_type + description: The type of withdrawal created. - name: should_unwrap_native_token description: Indicates whether the native token should be unwrapped. - name: key diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/arbitrum/gmx_v2_arbitrum_withdrawal_created.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/arbitrum/gmx_v2_arbitrum_withdrawal_created.sql index c97a0b78ad3..29699322fd5 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/arbitrum/gmx_v2_arbitrum_withdrawal_created.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/arbitrum/gmx_v2_arbitrum_withdrawal_created.sql @@ -146,6 +146,8 @@ WITH evt_data_1 AS ( MAX(CASE WHEN key_name = 'receiver' THEN value END) AS receiver, MAX(CASE WHEN key_name = 'callbackContract' THEN value END) AS callback_contract, MAX(CASE WHEN key_name = 'market' THEN value END) AS market, + MAX(CASE WHEN key_name = 'longTokenSwapPath' THEN value END) AS long_token_swap_path, + MAX(CASE WHEN key_name = 'shortTokenSwapPath' THEN value END) AS short_token_swap_path, MAX(CASE WHEN key_name = 'marketTokenAmount' THEN value END) AS market_token_amount, MAX(CASE WHEN key_name = 'minLongTokenAmount' THEN value END) AS min_long_token_amount, @@ -153,6 +155,7 @@ WITH evt_data_1 AS ( MAX(CASE WHEN key_name = 'updatedAtTime' THEN value END) AS updated_at_time, MAX(CASE WHEN key_name = 'executionFee' THEN value END) AS execution_fee, MAX(CASE WHEN key_name = 'callbackGasLimit' THEN value END) AS callback_gas_limit, + MAX(CASE WHEN key_name = 'withdrawalType' THEN value END) AS withdrawal_type, MAX(CASE WHEN key_name = 'shouldUnwrapNativeToken' THEN value END) AS should_unwrap_native_token, @@ -178,6 +181,8 @@ WITH evt_data_1 AS ( from_hex(receiver) AS receiver, from_hex(callback_contract) AS callback_contract, from_hex(market) AS market, + long_token_swap_path, + short_token_swap_path, TRY_CAST(market_token_amount AS DOUBLE) market_token_amount, -- index_token_decimals (market?) TRY_CAST(min_long_token_amount AS DOUBLE) min_long_token_amount, -- long_token_decimals @@ -185,6 +190,7 @@ WITH evt_data_1 AS ( TRY_CAST(updated_at_time AS DOUBLE) AS updated_at_time, TRY_CAST(execution_fee AS DOUBLE) AS execution_fee, -- POWER(10, 18) TRY_CAST(callback_gas_limit AS DOUBLE) AS callback_gas_limit, -- no decimals, keep as raw values + TRY_CAST(withdrawal_type AS INTEGER) AS withdrawal_type, TRY_CAST(should_unwrap_native_token AS BOOLEAN) AS should_unwrap_native_token, @@ -212,6 +218,8 @@ WITH evt_data_1 AS ( receiver, callback_contract, ED.market, + long_token_swap_path, + short_token_swap_path, market_token_amount / POWER(10, 18) AS market_token_amount, min_long_token_amount / POWER(10, MD.long_token_decimals) AS min_long_token_amount, @@ -222,6 +230,7 @@ WITH evt_data_1 AS ( END AS updated_at_time, execution_fee / POWER(10, 18) AS execution_fee, callback_gas_limit, + withdrawal_type, should_unwrap_native_token, "key" diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/avalanche_c/gmx_v2_avalanche_c_event_schema.yml b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/avalanche_c/gmx_v2_avalanche_c_event_schema.yml index 1e0c0276163..273684849a0 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/avalanche_c/gmx_v2_avalanche_c_event_schema.yml +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/avalanche_c/gmx_v2_avalanche_c_event_schema.yml @@ -2135,6 +2135,10 @@ models: description: The address of the callback contract associated with the withdrawal. - name: market description: The market associated with the withdrawal. + - name: long_token_swap_path + description: The swap path for the long token. + - name: short_token_swap_path + description: The swap path for the short token. - name: market_token_amount description: The amount of market tokens involved in the withdrawal. - name: min_long_token_amount @@ -2147,6 +2151,8 @@ models: description: The execution fee for processing the withdrawal. - name: callback_gas_limit description: The gas limit for the callback associated with the withdrawal. + - name: withdrawal_type + description: The type of withdrawal created. - name: should_unwrap_native_token description: Indicates whether the native token should be unwrapped. - name: key diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/avalanche_c/gmx_v2_avalanche_c_withdrawal_created.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/avalanche_c/gmx_v2_avalanche_c_withdrawal_created.sql index 8b1d5fba50b..56b972378c0 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/avalanche_c/gmx_v2_avalanche_c_withdrawal_created.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/avalanche_c/gmx_v2_avalanche_c_withdrawal_created.sql @@ -146,6 +146,8 @@ WITH evt_data_1 AS ( MAX(CASE WHEN key_name = 'receiver' THEN value END) AS receiver, MAX(CASE WHEN key_name = 'callbackContract' THEN value END) AS callback_contract, MAX(CASE WHEN key_name = 'market' THEN value END) AS market, + MAX(CASE WHEN key_name = 'longTokenSwapPath' THEN value END) AS long_token_swap_path, + MAX(CASE WHEN key_name = 'shortTokenSwapPath' THEN value END) AS short_token_swap_path, MAX(CASE WHEN key_name = 'marketTokenAmount' THEN value END) AS market_token_amount, MAX(CASE WHEN key_name = 'minLongTokenAmount' THEN value END) AS min_long_token_amount, @@ -153,6 +155,7 @@ WITH evt_data_1 AS ( MAX(CASE WHEN key_name = 'updatedAtTime' THEN value END) AS updated_at_time, MAX(CASE WHEN key_name = 'executionFee' THEN value END) AS execution_fee, MAX(CASE WHEN key_name = 'callbackGasLimit' THEN value END) AS callback_gas_limit, + MAX(CASE WHEN key_name = 'withdrawalType' THEN value END) AS withdrawal_type, MAX(CASE WHEN key_name = 'shouldUnwrapNativeToken' THEN value END) AS should_unwrap_native_token, @@ -178,6 +181,8 @@ WITH evt_data_1 AS ( from_hex(receiver) AS receiver, from_hex(callback_contract) AS callback_contract, from_hex(market) AS market, + long_token_swap_path, + short_token_swap_path, TRY_CAST(market_token_amount AS DOUBLE) market_token_amount, -- index_token_decimals (market?) TRY_CAST(min_long_token_amount AS DOUBLE) min_long_token_amount, -- long_token_decimals @@ -185,6 +190,7 @@ WITH evt_data_1 AS ( TRY_CAST(updated_at_time AS DOUBLE) AS updated_at_time, TRY_CAST(execution_fee AS DOUBLE) AS execution_fee, -- POWER(10, 18) TRY_CAST(callback_gas_limit AS DOUBLE) AS callback_gas_limit, -- no decimals, keep as raw values + TRY_CAST(withdrawal_type AS INTEGER) AS withdrawal_type, TRY_CAST(should_unwrap_native_token AS BOOLEAN) AS should_unwrap_native_token, @@ -212,6 +218,8 @@ WITH evt_data_1 AS ( receiver, callback_contract, ED.market, + long_token_swap_path, + short_token_swap_path, market_token_amount / POWER(10, 18) AS market_token_amount, min_long_token_amount / POWER(10, MD.long_token_decimals) AS min_long_token_amount, @@ -222,6 +230,7 @@ WITH evt_data_1 AS ( END AS updated_at_time, execution_fee / POWER(10, 18) AS execution_fee, callback_gas_limit, + withdrawal_type, should_unwrap_native_token, "key" diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/gmx_v2_event_schema.yml b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/gmx_v2_event_schema.yml index bb3071fcdb7..2a6abe33e7a 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/gmx_v2_event_schema.yml +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/gmx_v2_event_schema.yml @@ -2012,6 +2012,10 @@ models: description: The address of the callback contract associated with the withdrawal. - name: market description: The market associated with the withdrawal. + - name: long_token_swap_path + description: The swap path for the long token. + - name: short_token_swap_path + description: The swap path for the short token. - name: market_token_amount description: The amount of market tokens involved in the withdrawal. - name: min_long_token_amount @@ -2024,6 +2028,8 @@ models: description: The execution fee for processing the withdrawal. - name: callback_gas_limit description: The gas limit for the callback associated with the withdrawal. + - name: withdrawal_type + description: The type of withdrawal created. - name: should_unwrap_native_token description: Indicates whether the native token should be unwrapped. - name: key diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/gmx_v2_withdrawal_created.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/gmx_v2_withdrawal_created.sql index 527870ac98b..8684f7bd6d3 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/gmx_v2_withdrawal_created.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/event/gmx_v2_withdrawal_created.sql @@ -31,12 +31,15 @@ SELECT receiver, callback_contract, market, + long_token_swap_path, + short_token_swap_path, market_token_amount, min_long_token_amount, min_short_token_amount, updated_at_time, execution_fee, callback_gas_limit, + withdrawal_type, should_unwrap_native_token, "key" diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql index a7c6f4a40d5..aefd86f4a36 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql @@ -2,7 +2,7 @@ config( schema = 'gmx_v2_arbitrum', alias = 'erc20', - materialized = 'view' + materialized = 'table' ) }} diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql index abb2922bb26..6b0b2a5a91d 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql @@ -2,7 +2,7 @@ config( schema = 'gmx_v2_avalanche_c', alias = 'erc20', - materialized = 'view' + materialized = 'table' ) }} From 0a5466c683d2afddf1100dd103437cfa8427d3b5 Mon Sep 17 00:00:00 2001 From: AIDataMaster Date: Wed, 22 Jan 2025 13:04:57 +0200 Subject: [PATCH 2/5] Update *_erc20 models --- .../tokens/arbitrum/gmx_v2_arbitrum_erc20.sql | 21 +++++++++---------- .../avalanche_c/gmx_v2_avalanche_c_erc20.sql | 21 +++++++++---------- sources/_datasets/dune/sources.yml | 17 ++++++++++++++- 3 files changed, 36 insertions(+), 23 deletions(-) diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql index aefd86f4a36..8a49def39bd 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql @@ -2,20 +2,19 @@ config( schema = 'gmx_v2_arbitrum', alias = 'erc20', - materialized = 'table' + materialized = 'view' ) }} -{%- set url_path = 'https://arbitrum-api.gmxinfra.io/tokens/dune' -%} {%- set blockchain_name = 'arbitrum' -%} SELECT - '{{ blockchain_name }}' AS blockchain, - 'gmx_v2' AS project, - json_extract_scalar(token, '$.symbol') AS symbol, - from_hex(json_extract_scalar(token, '$.address')) AS contract_address, - CAST(json_extract_scalar(token, '$.decimals') AS INTEGER) AS decimals, - COALESCE(CAST(json_extract_scalar(token, '$.synthetic') AS BOOLEAN), false) AS synthetic, - CURRENT_TIMESTAMP AS last_update_utc -FROM - UNNEST(CAST(json_parse(http_get('{{ url_path }}')) AS ARRAY(JSON))) AS t(token) + blockchain + , project + , symbol + , contract_address + , decimals + , synthetic + , last_update_utc +FROM {{ source("dune","result_gmx_v_2_erc_20_from_api", database="dune") }} +WHERE blockchain = '{{ blockchain_name }}' diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql index 6b0b2a5a91d..15fba90dbf5 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql @@ -2,20 +2,19 @@ config( schema = 'gmx_v2_avalanche_c', alias = 'erc20', - materialized = 'table' + materialized = 'view' ) }} -{%- set url_path = 'https://avalanche-api.gmxinfra.io/tokens/dune' -%} {%- set blockchain_name = 'avalanche_c' -%} SELECT - '{{ blockchain_name }}' AS blockchain, - 'gmx_v2' AS project, - json_extract_scalar(token, '$.symbol') AS symbol, - from_hex(json_extract_scalar(token, '$.address')) AS contract_address, - CAST(json_extract_scalar(token, '$.decimals') AS INTEGER) AS decimals, - COALESCE(CAST(json_extract_scalar(token, '$.synthetic') AS BOOLEAN), false) AS synthetic, - CURRENT_TIMESTAMP AS last_update_utc -FROM - UNNEST(CAST(json_parse(http_get('{{ url_path }}')) AS ARRAY(JSON))) AS t(token) + blockchain + , project + , symbol + , contract_address + , decimals + , synthetic + , last_update_utc +FROM {{ source("dune","result_gmx_v_2_erc_20_from_api", database="dune") }} +WHERE blockchain = '{{ blockchain_name }}' diff --git a/sources/_datasets/dune/sources.yml b/sources/_datasets/dune/sources.yml index adc99858345..71d750ab04f 100644 --- a/sources/_datasets/dune/sources.yml +++ b/sources/_datasets/dune/sources.yml @@ -3,4 +3,19 @@ version: 2 sources: - name: dune tables: - - name: result_blockchains + - name: result_gmx_v_2_erc_20_from_api + columns: + - name: blockchain + description: "The blockchain name (e.g., arbitrum, avalanche_c)." + - name: project + description: "The project associated with the data (e.g., gmx_v2)." + - name: symbol + description: "The token symbol (e.g., ETH, BTC)." + - name: contract_address + description: "The hexadecimal address of the token contract." + - name: decimals + description: "The number of decimals used by the token." + - name: synthetic + description: "Boolean indicating whether the token is synthetic." + - name: last_update_utc + description: "The timestamp of the last update in UTC." \ No newline at end of file From eb833ac889692f8c0161a524c12721fda29db0e2 Mon Sep 17 00:00:00 2001 From: AIDataMaster Date: Wed, 22 Jan 2025 13:07:53 +0200 Subject: [PATCH 3/5] fix error in source file --- sources/_datasets/dune/sources.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/_datasets/dune/sources.yml b/sources/_datasets/dune/sources.yml index 71d750ab04f..46b9cde042c 100644 --- a/sources/_datasets/dune/sources.yml +++ b/sources/_datasets/dune/sources.yml @@ -3,6 +3,7 @@ version: 2 sources: - name: dune tables: + - name: result_blockchains - name: result_gmx_v_2_erc_20_from_api columns: - name: blockchain From acd695c87556e084e1afa309dc5e938f3eb35a2a Mon Sep 17 00:00:00 2001 From: AIDataMaster Date: Wed, 22 Jan 2025 13:56:41 +0200 Subject: [PATCH 4/5] Update source and dbt model files --- .../tokens/arbitrum/gmx_v2_arbitrum_erc20.sql | 2 +- sources/_datasets/dune/sources.yml | 19 +++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql index 8a49def39bd..f97b414068c 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql @@ -16,5 +16,5 @@ SELECT , decimals , synthetic , last_update_utc -FROM {{ source("dune","result_gmx_v_2_erc_20_from_api", database="dune") }} +FROM {{ source("gmx-io","result_gmx_v_2_erc_20_from_api", database="dune") }} WHERE blockchain = '{{ blockchain_name }}' diff --git a/sources/_datasets/dune/sources.yml b/sources/_datasets/dune/sources.yml index 46b9cde042c..0d22d77d307 100644 --- a/sources/_datasets/dune/sources.yml +++ b/sources/_datasets/dune/sources.yml @@ -4,19 +4,6 @@ sources: - name: dune tables: - name: result_blockchains - - name: result_gmx_v_2_erc_20_from_api - columns: - - name: blockchain - description: "The blockchain name (e.g., arbitrum, avalanche_c)." - - name: project - description: "The project associated with the data (e.g., gmx_v2)." - - name: symbol - description: "The token symbol (e.g., ETH, BTC)." - - name: contract_address - description: "The hexadecimal address of the token contract." - - name: decimals - description: "The number of decimals used by the token." - - name: synthetic - description: "Boolean indicating whether the token is synthetic." - - name: last_update_utc - description: "The timestamp of the last update in UTC." \ No newline at end of file + - name: "gmx-io" + tables: + - name: result_gmx_v_2_erc_20_from_api \ No newline at end of file From b2058edab99e3de23881c560b7bdab645e3d8648 Mon Sep 17 00:00:00 2001 From: jeff-dude Date: Wed, 22 Jan 2025 15:33:53 -0500 Subject: [PATCH 5/5] update sources --- .../_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql | 4 ++-- .../gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql index f97b414068c..82e3b5e496b 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/arbitrum/gmx_v2_arbitrum_erc20.sql @@ -16,5 +16,5 @@ SELECT , decimals , synthetic , last_update_utc -FROM {{ source("gmx-io","result_gmx_v_2_erc_20_from_api", database="dune") }} -WHERE blockchain = '{{ blockchain_name }}' +FROM {{ source('gmx-io', 'result_gmx_v_2_erc_20_from_api', database='dune') }} +WHERE blockchain = '{{ blockchain_name }}' \ No newline at end of file diff --git a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql index 15fba90dbf5..98647319598 100644 --- a/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql +++ b/dbt_subprojects/hourly_spellbook/models/_project/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_erc20.sql @@ -16,5 +16,5 @@ SELECT , decimals , synthetic , last_update_utc -FROM {{ source("dune","result_gmx_v_2_erc_20_from_api", database="dune") }} -WHERE blockchain = '{{ blockchain_name }}' +FROM {{ source('gmx-io', 'result_gmx_v_2_erc_20_from_api', database='dune') }} +WHERE blockchain = '{{ blockchain_name }}' \ No newline at end of file