Afonso_DiazTop Pools
    Updated 2 days ago
    with

    main as (
    select
    tx_id,
    block_timestamp,
    pool_address,
    provider_address as user,
    pool_name,
    platform,
    token_a_amount_usd + token_b_amount_usd as amount_usd,
    action_type as event_name
    from
    solana.marinade.ez_liquidity_pool_actions
    )

    select
    pool_name,
    count(distinct tx_id) as transactions,
    count(distinct user) as users,
    sum(iff(event_name = 'deposit', amount_usd, 0)) as deposit_volume_usd,
    sum(iff(event_name = 'withdraw', amount_usd, 0)) as withdraw_volume_usd,
    avg(iff(event_name = 'deposit', amount_usd, 0)) as deposit_average_amount_usd,
    avg(iff(event_name = 'withdraw', amount_usd, 0)) as withdraw_average_amount_usd
    from
    main
    where
    amount_usd > 0
    group by 1
    order by transactions desc
    limit 10



    Last run: 2 days ago
    POOL_NAME
    TRANSACTIONS
    USERS
    DEPOSIT_VOLUME_USD
    WITHDRAW_VOLUME_USD
    DEPOSIT_AVERAGE_AMOUNT_USD
    WITHDRAW_AVERAGE_AMOUNT_USD
    1
    USDH-MSOL89088822114159147.2149079614063598.0129933715.80911268792115.702429137183
    2
    MSOL-USDC44944113389836808911.1518998827897871.03997671854.0297491323731834.286492048177
    3
    SOL-MSOL3643212929011796407286.97487311946284411.63708131363.74758578436731762.23402258102
    4
    MSOL-USDT1871443750496430821.73460025458730686.519535362634.675471731542434.591961233483
    5
    MNDE-MSOL1283611278263763393.3429969849807441.26830222494.190266636158386.02639210936
    6
    MSOL-ETH1131673084143690255.7831738140812706.5900471259.3803094164021234.159888077119
    7
    BSOL-MSOL6807150339067245.9430340641999454.93523481553.101892076424594.615193114193
    8
    ORCA-MSOL382951007449038114.3988537748597712.14112411280.5356939248931269.035439120619
    9
    MSOL-JITOSOL3824134640478553.4573468443193238.473637851041.3829034563121111.22301192791
    10
    MSOL-SOL26102584560823146.0702876885868788.105032892330.210178158293289.739794078342
    10
    969B
    5s