-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from Artemis-xyz/feature/seamless_ez
Feature/seamless ez
- Loading branch information
Showing
4 changed files
with
31 additions
and
3 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
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="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()) |
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