Mehdi_Mahan-1779LI.FI user Rank simulator based on connext airdrop copy
    -- forked from rezarwz / LI.FI user Rank simulator based on connext airdrop @ https://flipsidecrypto.xyz/rezarwz/q/RcUx57DavzsX/li.fi-user-rank-simulator-based-on-connext-airdrop

    with all_tx as (
    SELECT
    'arbitrum' as blockchain,
    TX_HASH,
    date_trunc('month', block_timestamp) as month,
    FROM_ADDRESS as ua,
    case
    when amount_usd is null
    and SYMBOL = 'DAI' then amount
    when amount_usd is null
    and SYMBOL = 'axlUSDC' then amount
    when amount_usd is null
    and SYMBOL = 'aArbUSDT' then amount
    when amount_usd is null
    and SYMBOL = 'aArbUSDC' then amount
    when amount_usd is null
    and SYMBOL = 'USD+' then amount
    when amount_usd is null
    and SYMBOL = 'USDC' then amount
    when amount_usd is null
    and SYMBOL = 'USDCx' then amount
    when amount_usd is null
    and SYMBOL = 'USDT' then amount
    else amount_usd
    end as amount_usd
    from
    arbitrum.core.ez_token_transfers
    where
    ORIGIN_TO_ADDRESS = '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
    and to_address = '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
    and from_address = origin_from_address
    and block_number >= 32495475
    UNION
    all
    Run a query to Download Data