CryptoIcicleGains Network vs GMX
    Updated 2022-11-04
    -- Gains Network vs GMX
    -- Reddit is officially in the NFT game. Find 3 metrics to compare the Reddit NFT launch to the launches of other major NFTs.

    -- Pay by Quality Your score determines your final payout.
    -- Grand Prize 112.5 USDC (A score of 11 or 12 earns you a Grand Prize title)
    -- Payout 75 USDC
    -- Score Multiplier0-7 : 0% 8 : 50% 9 : 75% 10 : 100% 11 : 125% 12 : 150%
    -- Payout Network Ethereum
    -- Level Intermediate
    -- Difficulty Hard
    -- A war of the trading platforms? GMX (native to Arbitrum) - GNS (native to polygon, but announced will be launching on Arbitrum soon).
    -- Both platform native tokens (GMX - GNS) have seen meteoric price growth during a bear market.
    -- Since June GNS has gone from $0.68 to $3.68 and GMX has gone from $13.70 to $41.56
    -- Observe Trading volume. Has one platform absorbed more volume than the other?
    -- How impactful is GNS volume to polygon? GMX volume to Arbitrum? Are there any insights that can reveal why Gains Network wants to move into the Arbitrum ecosystem?
    -- BONUS: Post your dashboard on Twitter and tag @flipsidecrypto and any relevant accounts!

    -- SQL Credit : https://app.flipsidecrypto.com/velocity/queries/8c79c7a3-10e6-4d2c-9dde-4982dd6d65a3

    with pricetable as (
    select hour::date as date,
    symbol,
    decimals,
    avg (price) as usdprice
    from ethereum.core.fact_hourly_token_prices
    where (symbol in ('USDC','MIM','LINK','USDT','WETH','WBTC','DAI','FRAX')
    or token_address in ('0x1f9840a85d5af5bf1d1762f925bdaddc4201f984')) --UNI
    group by 1,2,3),

    gmxtable as (
    select block_timestamp,
    tx_hash,
    origin_from_address,
    event_inputs:value as volume,
    case when contract_address = '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' then 'USDC'
    when contract_address = '0xfea7a6a0b346362bf88a9e4a88416b77a57d6c2a' then 'MIM'
    Run a query to Download Data