-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
127 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{ | ||
config( | ||
materialized="table", | ||
snowflake_warehouse="BENQI_FINANCE", | ||
database="benqi_finance", | ||
schema="core", | ||
alias="ez_metrics_by_chain", | ||
) | ||
}} | ||
|
||
with | ||
benqi_by_chain as ( | ||
{{ | ||
dbt_utils.union_relations( | ||
relations=[ | ||
ref("fact_benqi_avalanche_borrows_deposits_gold"), | ||
], | ||
) | ||
}} | ||
) | ||
select | ||
benqi_by_chain.date, | ||
'benqi' as app, | ||
'DeFi' as category, | ||
benqi_by_chain.chain, | ||
benqi_by_chain.daily_borrows_usd, | ||
benqi_by_chain.daily_supply_usd | ||
from benqi_by_chain | ||
where benqi_by_chain.date < to_date(sysdate()) |
29 changes: 29 additions & 0 deletions
29
models/projects/seamless/core/ez_seamless_metrics_by_chain.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{ | ||
config( | ||
materialized="table", | ||
snowflake_warehouse="SEAMLESSPROTOCOL", | ||
database="seamlessprotocol", | ||
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()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{ | ||
config( | ||
materialized="table", | ||
snowflake_warehouse="SONNE_FINANCE", | ||
database="sonne_finance", | ||
schema="core", | ||
alias="ez_metrics_by_chain", | ||
) | ||
}} | ||
|
||
with | ||
sonne_by_chain as ( | ||
{{ | ||
dbt_utils.union_relations( | ||
relations=[ | ||
ref("fact_sonne_base_borrows_deposits_gold"), | ||
ref("fact_sonne_optimism_borrows_deposits_gold"), | ||
], | ||
) | ||
}} | ||
) | ||
select | ||
sonne_by_chain.date, | ||
'sonne' as app, | ||
'DeFi' as category, | ||
sonne_by_chain.chain, | ||
sonne_by_chain.daily_borrows_usd, | ||
sonne_by_chain.daily_supply_usd | ||
from sonne_by_chain | ||
where sonne_by_chain.date < to_date(sysdate()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{ | ||
config( | ||
materialized="table", | ||
snowflake_warehouse="venus", | ||
database="venus", | ||
schema="core", | ||
alias="ez_metrics_by_chain", | ||
) | ||
}} | ||
|
||
with | ||
venus_by_chain as ( | ||
{{ | ||
dbt_utils.union_relations( | ||
relations=[ | ||
ref("fact_venus_v4_lending_bsc_gold"), | ||
], | ||
) | ||
}} | ||
) | ||
select | ||
venus_by_chain.date, | ||
'venus' as app, | ||
'DeFi' as category, | ||
venus_by_chain.chain, | ||
venus_by_chain.daily_borrows_usd, | ||
venus_by_chain.daily_supply_usd | ||
from venus_by_chain | ||
where venus_by_chain.date < to_date(sysdate()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
models/staging/benqi/fact_benqi_avalanche_borrows_deposits_gold.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{ config(materialized="table") }} | ||
{{ config(materialized="table", snowflake_warehouse="BENQI_FINANCE") }} | ||
select date, chain, app, category, daily_borrows_usd, daily_supply_usd | ||
from {{ ref("fact_benqi_avalanche_borrows_deposits") }} |
2 changes: 1 addition & 1 deletion
2
models/staging/seamless/fact_seamless_protocol_base_borrows_deposits.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
models/staging/seamless/fact_seamless_protocol_base_borrows_deposits_gold.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{ config(materialized="table") }} | ||
{{ config(materialized="table", snowflake_warehouse="SONNE_FINANCE") }} | ||
select date, chain, app, category, daily_borrows_usd, daily_supply_usd | ||
from {{ ref("fact_sonne_base_borrows_deposits") }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
models/staging/sonne/fact_sonne_optimism_borrows_deposits_gold.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{ config(materialized="table") }} | ||
{{ config(materialized="table", snowflake_warehouse="SONNE_FINANCE") }} | ||
select date, chain, app, category, daily_borrows_usd, daily_supply_usd | ||
from {{ ref("fact_sonne_optimism_borrows_deposits") }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{ config(materialized="table") }} | ||
select date, chain, app, category, daily_borrows_usd, daily_supply_usd | ||
{{ config(materialized="table", snowflake_warehouse="VENUS") }} | ||
select date, chain, 'venus' as app, category, daily_borrows_usd, daily_supply_usd | ||
from {{ ref("fact_venus_v4_lending_bsc") }} |