SniperTotal last month
    Updated 2022-09-19
    with gmx as (
    select
    block_timestamp,
    tx_hash,
    event_inputs:inputToken as token0,
    event_inputs:outputToken as token1,
    case
    when event_inputs:inputToken = '0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0' then 'UNI'
    when event_inputs:inputToken = '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' then 'USDC'
    when event_inputs:inputToken = '0xf97f4df75117a78c1a5a0dbb814af92458539fb4' then 'LINK'
    when event_inputs:inputToken = '0xfea7a6a0b346362bf88a9e4a88416b77a57d6c2a' then 'MIM'
    when event_inputs:inputToken = '0x82af49447d8a07e3bd95bd0d56f35241523fbab1' then 'WETH'
    when event_inputs:inputToken = '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f' then 'WBTC'
    when event_inputs:inputToken = '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1' then 'DAI'
    when event_inputs:inputToken = '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' then 'USDT'
    when event_inputs:inputToken = '0x17fc002b466eec40dae837fc4be5c67993ddbd6f' then 'FRAX'
    else event_inputs:inputToken
    end as token_name0,
    case
    when event_inputs:outputToken = '0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0' then 'UNI'
    when event_inputs:outputToken = '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' then 'USDC'
    when event_inputs:outputToken = '0xf97f4df75117a78c1a5a0dbb814af92458539fb4' then 'LINK'
    when event_inputs:outputToken = '0xfea7a6a0b346362bf88a9e4a88416b77a57d6c2a' then 'MIM'
    when event_inputs:outputToken = '0x82af49447d8a07e3bd95bd0d56f35241523fbab1' then 'WETH'
    when event_inputs:outputToken = '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f' then 'WBTC'
    when event_inputs:outputToken = '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1' then 'DAI'
    when event_inputs:outputToken = '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' then 'USDT'
    when event_inputs:outputToken = '0x17fc002b466eec40dae837fc4be5c67993ddbd6f' then 'FRAX'
    else event_inputs:outputToken
    end as token_name1,
    try_to_number(event_inputs:inputValue::string) as amount0,
    try_to_number(event_inputs:outputValue::string) as amount1,
    event_inputs:sender as trader
    from
    arbitrum.core.fact_event_logs
    where
    Run a query to Download Data