CryptoIcicleFlash Bounty: GMX Traders - Top 100 Common LPers/Traders
    Updated 2022-09-19
    -- Pay by Quality
    -- Your score determines your final payout.
    -- Grand Prize 225 USDC (A score of 11 or 12 earns you a Grand Prize title)
    -- Payout 150 USDC
    -- Score Multiplier0-7 : 0% 8 : 50% 9 : 75% 10 : 100% 11 : 125% 12 : 150%
    -- Payout Network Ethereum
    -- Level Advanced
    -- Difficulty Elite
    -- Analyze the traders utilizing this platform on Arbitrum.
    -- Identify the top-performing wallets in trades. Compare how traders are performing across various assets,
    -- and how traders are performing in relation to liquidity providers.
    -- Note any trends or outliers you may see.

    -- Contracts https://gmxio.gitbook.io/gmx/contracts
    -- SQL Credit https://app.flipsidecrypto.com/velocity/queries/88b0d239-c959-4a9b-85cb-58931bcdf169
    with
    txns_2 as (
    select
    t.*
    from arbitrum.core.fact_event_logs t
    where 1=1
    and origin_function_signature = '0x364e2311' -- mintAndStakeGlp
    and contract_address = '0x4277f8f2c384827b5273592ff7cebd9f2c1ac258' --Token GMX LP
    and block_timestamp >= CURRENT_DATE - {{n_days}}
    ),
    top_10_lp as (
    select
    origin_from_address,
    count(distinct tx_hash) as n_txns
    from txns_2
    group by 1
    order by 2 desc
    limit 100
    ),
    token_price as (
    select
    Run a query to Download Data