Skip to content

Commit

Permalink
osmosis strict filter (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwes authored Nov 13, 2024
1 parent c7f5519 commit 8c8a3a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions models/staging/osmosis/fact_osmosis_gas_gas_usd.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ with
from data
left join prices t2 on data.date = t2.date and data.currency = t2.currency
left join coingecko_price t3 on data.date=t3.date and data.currency = t3.currency
where gas_usd < 10000
)
select date, 'osmosis' as chain, sum(gas_usd) as gas_usd
from by_token
Expand Down
5 changes: 4 additions & 1 deletion models/staging/osmosis/fact_osmosis_trading_fees.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ with
, 'factory/osmo19hdqma2mj0vnmgcxag6ytswjnr8a3y07q7e70p/wLIBRA'
, 'factory/osmo1q77cw0mmlluxu0wr29fcdd0tdnh78gzhkvhe4n6ulal9qvrtu43qtd0nh8/turd'
, 'ibc/DDF1CD4CDC14AE2D6A3060193624605FF12DEE71CF1F8C19EEF35E9447653493'
, 'factory/osmo10n8rv8npx870l69248hnp6djy6pll2yuzzn9x8/BADKID'
, 'factory/osmo1s6ht8qrm8x0eg8xag5x3ckx9mse9g4se248yss/BERNESE'
, 'factory/osmo1pfyxruwvtwk00y8z06dh2lqjdj82ldvy74wzm3/WOSMO'
)
{% if is_incremental() %}
and block_date::date >= (select dateadd('day', -5, max(date)) from {{ this }})
Expand Down Expand Up @@ -55,7 +58,7 @@ with
from data
left join prices t2 on data.date = t2.date and lower(data.currency) = lower(t2.currency)
left join coingecko_price t3 on data.date=t3.date and lower(data.currency) = lower(t3.currency)
where trading_fees < 1000000
where trading_fees < 10000
)
select date, 'osmosis' as chain, sum(trading_fees) as trading_fees
from by_token
Expand Down

0 comments on commit 8c8a3a2

Please sign in to comment.