tongzzezS and V pool Stake
    Updated 2022-08-18
    with top5_vpool as(
    select
    pool_name,
    sum(lp_fee),
    sum(lp_fee_usd)
    from
    optimism.velodrome.ez_swaps

    where
    block_timestamp::date < CURRENT_DATE
    and lp_fee_usd is not null
    and pool_name like 'v%'
    group by
    1
    order by
    3 desc
    limit 5
    )
    , top5_spool as(
    select
    pool_name,
    sum(lp_fee),
    sum(lp_fee_usd)
    from
    optimism.velodrome.ez_swaps

    where
    block_timestamp::date < CURRENT_DATE
    and lp_fee_usd is not null
    and pool_name like 's%'
    Run a query to Download Data