CryptoIcicleAxelar - 2. Squid Launch Analysis - Polygon
Updated 2023-02-20
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 prices as (
select
recorded_hour::date as date,
lower(
CASE id
WHEN 'tether' THEN 'usdt'
WHEN 'usd-coin' THEN 'usdc'
WHEN 'the-sandbox' THEN 'sand'
WHEN 'pangolin' THEN 'png'
WHEN 'yield-yak' THEN 'yak'
WHEN 'wrapped-avax' THEN 'wavax'
ELSE id
END
) as symbol,
avg(close) as price_usd
from
crosschain.core.fact_hourly_prices
where
recorded_hour >= CURRENT_DATE - {{n_days}}
group by
1,
2
),
p_txns as (
select
block_timestamp,
sender,
source,
destination,
router,
tx_hash,
token_address,
t.symbol,
token_amount * p.price_usd as token_amount_usd
from
(
Run a query to Download Data