0xHaM-dOutflow by Bridge Over Time
Updated 2023-04-24
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
›
⌄
-- forked from Inflow by Bridge Over Time @ https://flipsidecrypto.xyz/edit/queries/2bff8bca-9a7c-4f0c-8fbd-81df9a3ae9c6
with squid as (
SELECT
block_timestamp,tx_hash,
source_chain,sender,destination_chain,
token_symbol,amount
from axelar.core.ez_squid
),
debut as (
select min(block_timestamp) as debut
from axelar.core.ez_squid
),
total as (
select
'Squid' as bridge,
'Inflow' as direction, *
from squid
WHERE (destination_chain ilike ('%avalanche%'))
UNION
select
'Squid' as bridge,
'Outflow' as direction, *
from squid
WHERE (source_chain ilike ('%avalanche%'))
),
prices as (
select
trunc(recorded_hour,'day') as day,
symbol,
avg(price) as price_usd
from osmosis.core.ez_prices
group by 1,2
),
Run a query to Download Data