CryptoIcicleFLASH BOUNTY: FLOW NFT Floor Tracker - Top N by Sale Volume
    Updated 2022-10-27

    -- Pay by Quality Your score determines your final payout.
    -- Grand Prize 153.061 FLOW (A score of 11 or 12 earns you a Grand Prize title)
    -- Payout 102.041 FLOW
    -- Score Multiplier 0-7 : 0% 8 : 50% 9 : 75% 10 : 100% 11 : 125% 12 : 150%
    -- Payout Network Flow
    -- Level Intermediate
    -- Difficulty Hard
    -- Let’s sweep some floors. Build a dashboard that tracks the floor by contract for various NFT projects in the FLOW ecosystem.
    -- We’re interested to see how you come up with your own methodology.
    -- Include at least five projects in your dashboard, as well as any interesting metrics, notes, trends, or outliers that you see.
    -- BONUS: Post your dashboard on Twitter and tag @flipsidecrypto and any relevant accounts!


    with nft_sales as (
    select
    split(nft_collection,'.')[2] as name,
    *
    from flow.core.fact_nft_sales
    where block_timestamp >= '{{start_date}}'
    ),
    top_n as (
    select
    name,
    nft_collection,
    count(distinct tx_id) as n_txns,
    sum(price) as sale_volume,
    count(distinct buyer) as n_wallets_daily
    from nft_sales
    group by name,nft_collection
    order by sale_volume desc
    limit {{top_n}}
    )
    select * from top_n
    Run a query to Download Data