SniperSupply
    Updated 8 days ago
    with tbl as(
    select
    a.BLOCK_TIMESTAMP::date as date_,
    'Deposit' as type,
    case
    when c.contract_address = '0x10d0d11a8b693f4e3e33d09bbab7d4afc3c03ef3' then 'WEETH'
    when c.contract_address = '0x49c077b74292aa8f589d39034bf9c1ed1825a608' then 'WETH'
    when c.contract_address = '0x29c85c752e854b0cf2372e6b6c56f260755f5120' then 'PZETH'
    when c.contract_address = '0x4a5c95a0e3fca4148f91ceb637fba0e1080be40e' then 'EZETH'
    when c.contract_address = '0x3c12aa52b014acf7957308808362909b5757cca8' then 'WSTETH'
    when c.contract_address = '0x1773002742a2bcc7666e38454f761ce8fe613de5' then 'RSWETH'
    when c.contract_address = '0xf34253ec3dd0cb39c29cf5eeb62161fb350a9d14' then 'SWETH'
    when c.contract_address = '0x46e3c018798d6de4517a3c98358e4bd8d334b79c' then 'RSETH'
    when c.contract_address = '0xf18de8d3bcf95da46bb667c8a222956199b94e6c' then 'WETH'
    when c.contract_address = '0x522d58aefb7b4f54fc1bd31b5063e55c7984badd' then 'SWELL'
    end as symbol,
    DECODED_LOG:assets/pow(10,18) as volume
    from
    swell.core.fact_transactions a
    left join
    swell.core.fact_event_logs b
    on a.tx_hash = b.tx_hash
    join
    swell.core.ez_decoded_event_logs c
    on b.contract_address = c.contract_address and a.tx_hash = c.tx_hash
    where
    -- a.TO_ADDRESS = '0x08739cbede6e28e387685ba20e6409bd16969cde'
    --and
    c.EVENT_NAME = 'Deposit'
    and b.topics[0] = '0x80b61abbfc5f73cfe5cf93cec97a69ed20643dc6c6f1833b05a1560aa164e24c'
    and c.topics[0] = '0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7'
    -- and c.contract_address = '0x10d0d11a8b693f4e3e33d09bbab7d4afc3c03ef3'
    --and c.contract_address = '0x49c077b74292aa8f589d39034bf9c1ed1825a608'
    and c.TX_SUCCEEDED = 'TRUE'
    -- GROUP by 1,2

    Last run: 8 days ago
    DATE
    SUPPLY_USD
    TOTAL_SUPPLY
    1
    2025-04-19 00:00:00.000842315.01144058811088831.3218413
    2
    2025-04-18 00:00:00.000-2041713.9276999210246516.3104007
    3
    2025-04-17 00:00:00.000950680.0700815912288230.2381006
    4
    2025-04-16 00:00:00.000779529.82935722611337550.1680191
    5
    2025-04-15 00:00:00.00026604.22806931310558020.3386618
    6
    2025-04-14 00:00:00.000-13032.81906208610531416.1105925
    7
    2025-04-13 00:00:00.00021970.89977513110544448.9296546
    8
    2025-04-12 00:00:00.0005055.22598288710522478.0298795
    9
    2025-04-11 00:00:00.0003939.08070299810517422.8038966
    10
    2025-04-10 00:00:00.0003506.73528432410513483.7231936
    11
    2025-04-09 00:00:00.000976527.41693400410509976.9879093
    12
    2025-04-08 00:00:00.0002194065.757935889533449.57097526
    13
    2025-04-07 00:00:00.00099943.1303198147339383.81303938
    14
    2025-04-06 00:00:00.000-80550.9873133887239440.68271957
    15
    2025-04-05 00:00:00.000-2064.717950397319991.67003296
    16
    2025-04-04 00:00:00.000-579.0683271737322056.38798335
    17
    2025-04-03 00:00:00.000-120694.377898567322635.45631052
    18
    2025-04-02 00:00:00.000-17800.7997397797443329.83420908
    19
    2025-04-01 00:00:00.0002633.9905520177461130.63394886
    20
    2025-03-31 00:00:00.0007265.3624066627458496.64339684
    84
    5KB
    19s