Afonso_DiazTop Trade Routes
    Updated 2025-05-18
    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: 12 days ago
    SWAP_ROUTE
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    VOLUME
    AVERAGE_AMOUNT
    1
    WRON -> Ronke5405981169781883.82116.50231435312995367267.9395154774.927860361
    2
    Ronke -> USDC29828791312504.07246.757674375588336782.009679110610.412109359
    3
    USDC -> Ronke3187873754204.33137.078213377512624146.39641893170.510068415
    4
    WETH -> Ronke791403206430.44158.063124043176708436.429716135305.081492891
    5
    CAG -> Ronke829412199900.89163.1844203053895.962182165758.282418108
    6
    Ronke -> CAG594274175327.79206.510942285141932446.396739167176.02638014
    7
    KOKU -> Ronke571340134605.53138.768587629101996373.270863105150.90027924
    8
    AXS -> Ronke717366129639.09121.72684507170446850.539709160043.991117098
    9
    COCK -> Ronke25313296182.98224.20275058330969817.585842772190.716983316
    10
    Ronke -> KOKU32617284803.32140.1707768640866981.002496567548.728929746
    10
    831B
    16s