Skip to content

Commit

Permalink
Added Defillama as its own project (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny77D authored and SebMelendez01 committed Sep 9, 2024
1 parent 57c897a commit f03ca3e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions databases.csv
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ CREAL
CUSD
DAI
DEXALOT
DEFILLAMA
DFK
EIGENPIE
ETHEREUM
Expand Down
17 changes: 17 additions & 0 deletions models/projects/defillama/core/ez_defillama_metrics_by_chains.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{
config(
materialized="table",
snowflake_warehouse="defillama",
database="defillama",
schema="core",
alias="ez_defillama_metrics_by_chains",
)
}}

select
date,
defillama_chain_name as chain,
dex_volumes,
tvl
from {{ref("agg_defillama_chain_fees_rev_tvl_dex_vol")}}
where date is not null
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{
config(
materialized="table",
snowflake_warehouse="defillama",
database="defillama",
schema="core",
alias="ez_defillama_metrics_by_protocols",
)
}}

select
date,
name,
dex_volumes,
tvl
from {{ref("agg_defillama_protocol_fees_rev_tvl_dex_vol")}}
where date is not null

0 comments on commit f03ca3e

Please sign in to comment.