Eman-Raz91- Popular Token Pairs Swapped by Squid Users Post-Bridging
    Updated 2025-03-09
    -- forked from 90- Popular Token Pairs Swapped by Squid Users Post-Bridging @ https://flipsidecrypto.xyz/studio/queries/e8bb06df-9d11-4489-8cf4-3b94bf02ef96

    with table1 as (select
    to_varchar(data:call:transaction:from) as squid_user,
    created_at as bridge_date,
    to_varchar(id) as transaction_hash,
    to_varchar(lower(data:call:chain)) as source_chain,
    to_varchar(lower(data:call:returnValues:destinationChain)) as destination_chain,
    data:approved:returnValues:symbol as symbol
    FROM
    axelar.axelscan.fact_gmp
    WHERE data:approved:returnValues:contractAddress in
    ('0xce16F69375520ab01377ce7B88f5BA8C48F8D666',
    '0x492751eC3c57141deb205eC2da8bFcb410738630',
    '0xDC3D8e1Abe590BCa428a8a2FC4CfDbD1AcF57Bd9') and
    status = 'executed'
    AND simplified_status = 'received'
    AND created_at :: date >= '{{Start_Date}}'
    AND created_at :: date <= '{{End_Date}}'),

    table2 as (
    select
    blockchain,
    block_timestamp as swap_date,
    tx_hash,
    trader,
    platform,
    coalesce(amount_in_usd,amount_out_usd) as volume_usd,
    symbol_in,
    symbol_out,
    symbol_in || '➡' || symbol_out as token_pair
    from
    crosschain.defi.ez_dex_swaps
    where
    block_timestamp :: date >= '{{Start_Date}}'
    and block_timestamp :: date <= '{{End_Date}}')
    Last run: 24 days ago
    TOKEN_PAIR
    Swap Count
    Swap Volume
    1
    WETH➡USDC103005232280222.62
    2
    USDC➡WETH90881281104959.93
    3
    USDC➡axlUSDC41513120927780.78
    4
    USDC➡USDT33413100469222.25
    5
    USDT➡USDC3064092774335.61
    6
    axlUSDC➡USDC2264885109301.52
    7
    WETH➡USDbC1907239648080.56
    8
    USDB➡WETH18290155578882.51
    9
    USDT➡WETH1526337669650.7
    10
    WETH➡USDB1446475895419.28
    11
    WETH➡USDT1398224317521.9
    12
    WMATIC➡USDC124009073335.18
    13
    USDbC➡WETH1220731036046.4
    14
    USDbC➡USDC993431567554.58
    15
    USDC➡USDbC978929751816.21
    16
    USDC➡WMATIC95079920774.04
    17
    WETH➡WBTC792075080424.08
    18
    USDC➡DAI791223197179.31
    19
    AERO➡WETH76264002581.74
    20
    WETH➡BLAST750976639204.39
    20
    688B
    25s