0xaiman2023-04-12 12:43 AM
    Updated 2023-04-11

    select source_chain, project_name, sum(amount) as vol

    from ((select
    x.*,
    project_name
    from
    (
    SELECT
    source_chain,
    es.tx_hash,
    es.token_symbol,
    es.amount,
    arb.to_address,
    origin_from_address
    from
    axelar.core.ez_squid es
    join arbitrum.core.fact_token_transfers arb on arb.tx_hash = es.tx_hash
    where source_chain='arbitrum'


    ) x
    join arbitrum.core.dim_labels arb2 on arb2.address = x.to_address
    where
    label_type = 'dex')

    Union (select
    x2.*,
    project_name
    from
    (SELECT
    source_chain,
    es.tx_hash,
    es.token_symbol,
    es.amount,
    avx.to_address,
    Run a query to Download Data