adriaparcerisasdogeswap 5
    Updated 2025-04-22
    with info as (
    select
    block_timestamp,
    tx_hash,
    args:withdraw:receiver_id as user,
    args:withdraw:amount::numeric as amount,
    case
    when predecessor_id ilike '%doge%' then 'DOGE'
    when predecessor_id ilike '%near%' then 'NEAR'
    when predecessor_id ilike '%usdc%' or predecessor_id='17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1' then 'USDC'
    when predecessor_id ilike '%usdt%' then 'USDT'
    when predecessor_id ilike '%eth%' then 'ETH'
    when predecessor_id ilike '%aurora%' then 'AURORA'
    when predecessor_id ilike '%btc%' then 'BTC'
    when predecessor_id ilike '%pepe%' then 'PEPE'
    when predecessor_id ilike '%shib%' then 'SHIB'
    when predecessor_id ilike '%link%' then 'LINK'
    when predecessor_id ilike '%uni%' then 'UNI'
    when predecessor_id ilike '%arb%' then 'ARB'
    when predecessor_id ilike '%aave%' then 'AAVE'
    when predecessor_id ilike '%gmx%' then 'GMX'
    when predecessor_id ilike '%mog%' then 'MOG'
    when predecessor_id ilike '%brett%' then 'BRETT'
    when predecessor_id ilike '%sweat%' then 'SWEAT'
    else 'NEAR'
    end as asset,
    predecessor_id
    from near.core.fact_actions_events_function_call
    where block_timestamp > '2024-12-01'
    and signer_id = 'intents.near'
    and action_name = 'FunctionCall'
    and method_name = 'do_native_withdraw'
    and receipt_succeeded = 'TRUE'
    and block_timestamp < current_date having amount<1e6
    ),
    prices as (
    Last run: 15 days ago
    DATE
    WITHDRAWNS
    ACTIVE_USERS
    ASSETS
    AMOUNT_USD
    TOTAL_AMOUNT_USD
    AVG_AMOUNT
    1
    2025-03-23 00:00:00.0003110.00022521600020.00067436254820.000009066666676
    2
    2025-03-22 00:00:00.0006110.00044914000040.00044914654790.000009066666676
    3
    2025-02-06 00:00:00.0002116.547500007e-96.547500007e-93.333333337e-10
    3
    249B
    14s