Hessishskate amm - Lp 2
    Updated 3 hours ago
    with
    prices as
    (SELECT
    date_trunc('day',hour) as day,
    avg(close) as pr,
    case
    when ASSET_ID = 'ethereum' then 'ETH'
    when ASSET_ID = 'turbo-eth' then 'tETH'
    end as Eclipse_tk
    from crosschain.price.fact_prices_ohlc_hourly
    where hour::date >= '2025-02-01'
    and ASSET_ID in ('ethereum','turbo-eth')
    and PROVIDER = 'coingecko'
    GROUP by all),

    inflow as
    (select
    case
    when mint = 'Eth1111111111111111111111111111111111111111' then 'ETH'
    when mint = 'So11111111111111111111111111111111111111112' then 'ETH'
    when mint = 'GU7NS9xCwgNPiAdJ69iusFrRfawjDDPjeMBovhV1d4kn' THEN 'tETH'
    end as token,
    AMOUNT/pow(10,decimal) as volume,
    volume*pr as volume_usd,
    a.TX_ID as hash,
    a.TX_from as user,
    a.BLOCK_TIMESTAMP as TIMESTAMP
    from eclipse.core.fact_transfers a
    join prices
    on token = Eclipse_tk
    and a.BLOCK_TIMESTAMP::date = day
    WHERE BLOCK_TIMESTAMP::date >= '2025-02-01'
    and tx_to = 'D7vG7dJZsrJjjCZ3P6W4CsPHMhPQfvw6CN4w1onQ3ieG'
    and succeeded = true
    ),

    Last run: about 3 hours ago
    DATE
    TOKEN
    NET_VOL
    NET_VOL_USD
    TVL_USD
    TVL
    TOTAL_TRANSFERS
    1
    2025-03-25 00:00:00.000ETH0.0001010.20860422170.20860422170.0001012
    2
    2025-03-26 00:00:00.000ETH0.0000110.022472871670.23107709330.0001122
    3
    2025-04-01 00:00:00.000ETH0.000495990.92953237911.1606094720.0006079916
    4
    2025-04-02 00:00:00.000ETH0.00610511.46650003112.6271095040.0067129916
    5
    2025-04-03 00:00:00.000ETH0.0023104754.16301674316.7901262470.00902346530
    6
    2025-04-04 00:00:00.000ETH0.00888116.02312610332.813252350.017904465769
    7
    2025-04-05 00:00:00.000ETH0.01366388124.62213137757.4353837270.03156834613678
    8
    2025-04-06 00:00:00.000ETH0.01827831.90316755289.3385512780.04984634617279
    9
    2025-04-07 00:00:00.000ETH0.00719854611.071624695100.4101759740.0570448925008
    10
    2025-04-08 00:00:00.000ETH0.01207018418.612792032119.0229680060.06911507612115
    11
    2025-04-09 00:00:00.000ETH0.0068201210.297875374129.320843380.0759351966989
    12
    2025-04-10 00:00:00.000ETH0.05096215380.425221027209.7460644080.126897349462
    13
    2025-04-11 00:00:00.000ETH-0.000421657-0.6560155418209.0900488660.1264756927
    14
    2025-04-12 00:00:00.000ETH-0.000104332-0.1674572506208.9225916150.126371363
    15
    2025-04-13 00:00:00.000ETH-0.123215215-198.45232484710.4702667680.0031561455
    16
    2025-04-14 00:00:00.000ETH0.01471063324.08997323634.5602400040.0178667781808
    17
    2025-04-15 00:00:00.000ETH-0.010228652-16.63399583617.9262441680.00763812613164
    18
    2025-04-16 00:00:00.000ETH-0.002707404-4.28238438513.6438597830.0049307223263
    19
    2025-04-17 00:00:00.000ETH-0.000683932-1.08878868212.5550711010.0042467915
    20
    2025-04-18 00:00:00.000ETH0.280551966445.30762769457.8626987910.28479875629
    52
    4KB
    7s