SniperDaily Borrow
    Updated 5 days ago
    with tbl as(
    select
    a.BLOCK_TIMESTAMP::date as date_,
    'Borrow' 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 = 'Borrow'
    and b.topics[0] = '0x80b61abbfc5f73cfe5cf93cec97a69ed20643dc6c6f1833b05a1560aa164e24c'
    and c.topics[0] = '0xcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a36750'
    -- and c.contract_address = '0x10d0d11a8b693f4e3e33d09bbab7d4afc3c03ef3'
    -- and c.contract_address = '0x49c077b74292aa8f589d39034bf9c1ed1825a608'
    and c.TX_SUCCEEDED = 'TRUE'
    -- GROUP by 1,2

    Last run: 5 days ago
    DATE
    BORROW_USD
    TOTAL_BORROW
    1
    2025-04-19 00:00:00.000327312.1906296285276490.86938071
    2
    2025-04-18 00:00:00.000-837474.4709439774949178.67875109
    3
    2025-04-17 00:00:00.000585084.9748889745786653.14969506
    4
    2025-04-16 00:00:00.000-15167.1942513235201568.17480609
    5
    2025-04-15 00:00:00.00023638.8205460055216735.36905741
    6
    2025-04-14 00:00:00.000-11553.9259276115193096.54851141
    7
    2025-04-13 00:00:00.00019259.0554335985204650.47443902
    8
    2025-04-12 00:00:00.0007172.4275110225185391.41900542
    9
    2025-04-11 00:00:00.0002174.3791497455178218.9914944
    10
    2025-04-10 00:00:00.0004467.9442376345176044.61234466
    11
    2025-04-09 00:00:00.000978747.5188436015171576.66810702
    12
    2025-04-08 00:00:00.0001900445.541523844192829.14926342
    13
    2025-04-07 00:00:00.00068356.1973378322292383.60773958
    14
    2025-04-06 00:00:00.000-71260.657348362224027.41040175
    15
    2025-04-05 00:00:00.000-1620.0297646362295288.06775011
    16
    2025-04-04 00:00:00.0006531.6941477372296908.09751475
    17
    2025-04-03 00:00:00.000-97891.8060210892290376.40336701
    18
    2025-04-02 00:00:00.000-19367.6900199872388268.2093881
    19
    2025-04-01 00:00:00.0002106.5412407635.89940808
    20
    2025-03-31 00:00:00.00017463.8109959272405529.35840808
    82
    5KB
    13s