MasiDaily Bridge Nov Vs. Oct
Updated 2024-12-06
999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with tb1 as (select trunc(block_timestamp,'day') as day,
token_address,
SOURCE_CHAIN,
SYMBOL,
TX_HASH,
platform,
AMOUNT_USD,
DESTINATION_ADDRESS
from near.defi.ez_bridge_activity
where block_timestamp::date >= current_date - 91
and DESTINATION_CHAIN in ('near','Near')
)
,
tb2 as ( select hour::date as day,
token_address as TOKEN_CONTRACT,
symbol as token,
avg(price) as avg_price
from crosschain.price.ez_prices_hourly
where hour::date >= current_date - 91
group by 1,2,3
UNION
select trunc(hour,'day') as day,
'aurora' as TOKEN_CONTRACT,
'ETH' as token,
avg(price) as avg_price
from ethereum.price.ez_prices_hourly
where hour::date >= current_date - 91
and symbol = 'WETH'
group by 1,2,3
UNION
select trunc(hour,'day') as day,
'48afbbd342f64ef8a9ab1c143719b63c2ad81710.factory.bridge.near' as TOKEN_CONTRACT,
'MPETH' as token,
avg(price) as avg_price
from ethereum.price.ez_prices_hourly
where hour::date >= current_date - 91
QueryRunArchived: QueryRun has been archived