KaskoazulTinyman TVL
Updated 2022-06-22
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 raw_txs_out as (
select tf.block_timestamp,
date_trunc('hour', tf.block_timestamp) as hour,
tf.tx_id,
tf.asset_sender,
l.address_name as pool,
tf.asset_id,
price.asset_name,
tf.amount,
amount * price.price_usd as amount_usd,
tf.tx_type
from flipside_prod_db.algorand.transfers tf
left join flipside_prod_db.algorand.labels l
on tf.asset_sender = l.address
left join flipside_prod_db.algorand.prices_swap price
on date_trunc('hour', tf.block_timestamp) = price.block_hour and tf.asset_id = price.asset_id
where l.address_name like 'tinyman%'--'tinyman: goETH-ALGO pool'
and tf.block_timestamp > '2022-01-19' --funciona desde el 1.1 despues del ataque
order by 1 desc
),
raw_txs_in as (
select tf.block_timestamp,
date_trunc('hour', tf.block_timestamp) as hour,
tf.tx_id,
tf.receiver,
l.address_name as pool,
tf.asset_id,
price.asset_name,
tf.amount,
amount * price.price_usd as amount_usd,
tf.tx_type
from flipside_prod_db.algorand.transfers tf
left join flipside_prod_db.algorand.labels l
on tf.receiver = l.address
left join flipside_prod_db.algorand.prices_swap price
Run a query to Download Data