KaskoazulTinyman TVL
    Updated 2022-06-22
    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