diff --git a/macros/rwa/ez_rwa_by_chain.sql b/macros/rwa/ez_rwa_by_chain.sql index 8766499e..d579b57b 100644 --- a/macros/rwa/ez_rwa_by_chain.sql +++ b/macros/rwa/ez_rwa_by_chain.sql @@ -4,7 +4,7 @@ select tvl.date, tvl.chain, tvl.symbol, - tvl.issuer_friendly, + tvl.issuer_friendly_name, sum(tvl.tokenized_supply_change) as tokenized_supply_change, sum(tvl.tokenized_mcap_change) as tokenized_mcap_change, sum(tvl.tokenized_supply) as tokenized_supply, diff --git a/macros/rwa/ez_rwa_by_product.sql b/macros/rwa/ez_rwa_by_product.sql index bbadbbe1..3147c6a4 100644 --- a/macros/rwa/ez_rwa_by_product.sql +++ b/macros/rwa/ez_rwa_by_product.sql @@ -2,7 +2,7 @@ select tvl.date, - tvl.issuer_friendly, + tvl.issuer_friendly_name, tvl.symbol, sum(tvl.tokenized_supply_change) as tokenized_supply_change, sum(tvl.tokenized_mcap_change) as tokenized_mcap_change, diff --git a/macros/rwa/rwa_data_by_chain_for_issuer.sql b/macros/rwa/rwa_data_by_chain_for_issuer.sql index 220c70e5..ede83df7 100644 --- a/macros/rwa/rwa_data_by_chain_for_issuer.sql +++ b/macros/rwa/rwa_data_by_chain_for_issuer.sql @@ -3,7 +3,7 @@ date , chain , symbol - , issuer_friendly + , issuer_friendly_name , avg(price) as price , sum(rwa_supply_usd) as tokenized_mcap , sum(net_rwa_supply_usd_change) as tokenized_mcap_change diff --git a/macros/rwa/rwa_data_by_product_for_issuer.sql b/macros/rwa/rwa_data_by_product_for_issuer.sql index 5646c901..a8db5cf7 100644 --- a/macros/rwa/rwa_data_by_product_for_issuer.sql +++ b/macros/rwa/rwa_data_by_product_for_issuer.sql @@ -3,7 +3,7 @@ date , chain , symbol - , issuer_friendly + , issuer_friendly_name , avg(price) as price , sum(rwa_supply_usd) as tokenized_mcap , sum(net_rwa_supply_usd_change) as tokenized_mcap_change diff --git a/models/staging/rwa/addresses/dim_rwa_product_issuer_and_type.sql b/models/staging/rwa/addresses/dim_rwa_product_issuer_and_type.sql index c7141fad..3144f95b 100644 --- a/models/staging/rwa/addresses/dim_rwa_product_issuer_and_type.sql +++ b/models/staging/rwa/addresses/dim_rwa_product_issuer_and_type.sql @@ -5,7 +5,7 @@ ) }} -SELECT symbol, issuer_id, issuer_friendly, product_type FROM +SELECT symbol, issuer_id, issuer_friendly_name, product_type FROM ( VALUES ('BUIDL', 'blackrock', 'BlackRock', 'Treasury'), @@ -16,4 +16,4 @@ SELECT symbol, issuer_id, issuer_friendly, product_type FROM ('FOBXX', 'franklin_templeton', 'Franklin Templeton', 'Treasury'), ('PAXG', 'paxos', 'Paxos', 'Gold'), ('XAUT', 'tether', 'Tether', 'Gold') - ) as results(symbol, issuer_id, issuer_friendly, product_type) + ) as results(symbol, issuer_id, issuer_friendly_name, product_type) diff --git a/models/staging/rwa/agg_rwa_by_product_and_chain.sql b/models/staging/rwa/agg_rwa_by_product_and_chain.sql index 7077b2a3..e114f2ed 100644 --- a/models/staging/rwa/agg_rwa_by_product_and_chain.sql +++ b/models/staging/rwa/agg_rwa_by_product_and_chain.sql @@ -27,7 +27,7 @@ SELECT , chain , i.symbol , i.issuer_id - , i.issuer_friendly + , i.issuer_friendly_name , i.product_type , price , net_rwa_supply_native_change