Afonso_DiazTop Trade Routes
    Updated 2025-04-03
    with

    swaps as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    a.contract_address as token_in,
    b.contract_address as token_out,
    a.amount as amount_in,
    b.amount as amount_out,
    a.amount_usd as amount_in_usd,
    b.amount_usd as amount_out_usd,
    a.symbol as symbol_in,
    b.symbol as symbol_out
    from
    ronin.core.ez_token_transfers a
    join
    ronin.core.ez_token_transfers b using (tx_hash, block_timestamp)
    where
    a.contract_address != b.contract_address
    and b.to_address = origin_from_address
    and a.to_address != '0x22cefc91e9b7c0f3890ebf9527ea89053490694e'
    and b.to_address != '0x22cefc91e9b7c0f3890ebf9527ea89053490694e'
    and a.from_address != '0x0000000000000000000000000000000000000000'
    and b.from_address != '0x0000000000000000000000000000000000000000'
    and tx_hash not in (select distinct tx_hash from ronin.core.fact_transactions where input_data = '0x')
    ),

    main as (
    select
    *,
    nvl(amount_in_usd, amount_out_usd) as amount_usd,
    iff(token_in = '0xf988f63bf26c3ed3fbf39922149e3e7b1e5c27cb', amount_in, amount_out) as amount,
    iff(token_in = '0xf988f63bf26c3ed3fbf39922149e3e7b1e5c27cb', 'Sell', 'Buy') as type
    Last run: 21 days ago
    SWAP_ROUTE
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    VOLUME
    AVERAGE_AMOUNT
    1
    WRON -> Ronke4505054078716816121.68036070712148342973.4886169581.961465285
    2
    Ronke -> USDC22747361047200.88259.465034688431783492.522941106983.025897656
    3
    USDC -> Ronke2433746556061.14130.930336708364621813.78464785853.970752213
    4
    CAG -> Ronke753381186913.3165.117756184193785944.083026171188.996539776
    5
    Ronke -> CAG510238162106.57218.178425303133367413.431385179498.537592713
    6
    WETH -> Ronke621319155578.5159.40420082143239649.519488146761.935983082
    7
    KOKU -> Ronke557332133613.12139.909026178101312518.06289106086.406348576
    8
    AXS -> Ronke530301108536.7139.328241335158418573.113431203361.454574366
    9
    COCK -> Ronke22912189818.38230.30353846227633990.650900670856.386284361
    10
    Ronke -> KOKU31916784074.78140.82877721940470502.476823167789.786393339
    10
    832B
    22s