MLDZMNsushi6
    Updated 2022-10-04
    with tb1 as (SELECT *
    from ethereum.core.dim_dex_liquidity_pools
    where PLATFORM='sushiswap')
    SELECT
    ORIGIN_FROM_ADDRESS,
    count(distinct ORIGIN_FROM_ADDRESS) as total_LP_providers,
    count(tx_hash) as no_txn,
    sum(amount_usd) as volume
    from ethereum.core.ez_token_transfers
    where TO_ADDRESS in (select POOL_ADDRESS from tb1)
    and ORIGIN_TO_ADDRESS='0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f'
    and origin_function_signature in ('0xe8e33700', '0xded9382a', '0xf305d719')
    and BLOCK_TIMESTAMP>='2022-09-15'and BLOCK_TIMESTAMP<'2022-09-29'-- after merge
    group by 1 having volume is not null
    order by 4 desc limit 10

    Run a query to Download Data