diff --git a/transformers/synthetix/models/marts/base/mainnet/perp/fct_perp_collateral_modified_base_mainnet.sql b/transformers/synthetix/models/marts/base/mainnet/perp/fct_perp_collateral_modified_base_mainnet.sql index 05ac42e1..cde91fef 100644 --- a/transformers/synthetix/models/marts/base/mainnet/perp/fct_perp_collateral_modified_base_mainnet.sql +++ b/transformers/synthetix/models/marts/base/mainnet/perp/fct_perp_collateral_modified_base_mainnet.sql @@ -7,7 +7,7 @@ select cm.contract, cm.event_name, synths.synth_symbol, - cm.collateral_id as synth_market_id, + cm.synth_market_id, synths.synth_token_address, cm.sender, {{ convert_wei("cm.amount_delta") }} as amount_delta @@ -15,4 +15,4 @@ from {{ ref("perp_collateral_modified_base_mainnet") }} as cm inner join {{ ref('base_mainnet_synths') }} as synths - on cm.collateral_id = synths.synth_market_id + on cm.synth_market_id = synths.synth_market_id diff --git a/transformers/synthetix/models/marts/base/sepolia/perp/fct_perp_collateral_modified_base_sepolia.sql b/transformers/synthetix/models/marts/base/sepolia/perp/fct_perp_collateral_modified_base_sepolia.sql index 629183e8..c03695ab 100644 --- a/transformers/synthetix/models/marts/base/sepolia/perp/fct_perp_collateral_modified_base_sepolia.sql +++ b/transformers/synthetix/models/marts/base/sepolia/perp/fct_perp_collateral_modified_base_sepolia.sql @@ -7,7 +7,7 @@ select cm.contract, cm.event_name, synths.synth_symbol, - cm.collateral_id as synth_market_id, + cm.synth_market_id, synths.synth_token_address, cm.sender, {{ convert_wei("cm.amount_delta") }} as amount_delta @@ -15,4 +15,4 @@ from {{ ref("perp_collateral_modified_base_sepolia") }} as cm inner join {{ ref('base_sepolia_synths') }} as synths - on cm.collateral_id = synths.synth_market_id + on cm.synth_market_id = synths.synth_market_id