Skip to content

Commit

Permalink
Merge pull request #193 from Artemis-xyz/feature/seamless_ez
Browse files Browse the repository at this point in the history
Feature/seamless ez
  • Loading branch information
akan72 authored Jun 18, 2024
2 parents d14945f + 0161141 commit aa6752e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
1 change: 0 additions & 1 deletion models/data_hubs/fact_daily_app_datahub.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ with
ref("fact_pancakeswap_ethereum_gold"),
ref("fact_apex_trading_volume_gold"),
ref("fact_spark_ethereum_borrows_deposits_gold"),
ref("fact_seamless_protocol_base_borrows_deposits_gold"),
ref("fact_uwu_lend_ethereum_borrows_deposits_gold"),
ref("fact_aevo_trading_volume_gold"),
ref("fact_sonne_optimism_borrows_deposits_gold"),
Expand Down
29 changes: 29 additions & 0 deletions models/projects/seamless/core/ez_seamless_metrics_by_chain.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{{
config(
materialized="table",
snowflake_warehouse="SEAMLESS",
database="seamless",
schema="core",
alias="ez_metrics_by_chain",
)
}}

with
seamless_by_chain as (
{{
dbt_utils.union_relations(
relations=[
ref("fact_seamless_protocol_base_borrows_deposits_gold"),
],
)
}}
)
select
seamless_by_chain.date,
'seamless' as app,
'DeFi' as category,
seamless_by_chain.chain,
seamless_by_chain.daily_borrows_usd,
seamless_by_chain.daily_supply_usd
from seamless_by_chain
where seamless_by_chain.date < to_date(sysdate())
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ config(materialized="table") }}
{{ config(materialized="table", snowflake_warehouse="SEAMLESS") }}
{{
fact_aave_fork_lending(
"raw_seamless_protocol_base_borrows_deposits", "base", "seamlessprotocol"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ config(materialized="table") }}
{{ config(materialized="table", snowflake_warehouse="SEAMLESS") }}
select
date,
chain,
Expand Down

0 comments on commit aa6752e

Please sign in to comment.