Query editor
WITH bonkfun_mints AS (SELECT DISTINCTaccount_arguments[7] AS token_address,MIN(block_time) AS launch_timeFROM solana.instruction_callsWHEREexecuting_account = 'LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj'AND varbinary_starts_with(data, 0xafaf6d1f0d989bed)AND tx_success = TRUEAND (account_arguments[4] = 'FfYek5vEz23cMkWsdJwG2oa6EphsvXSHrGpdALN4g6W1'OR account_arguments[4] = 'BuM6KDpWiTcxvrpXywWFiw45R2RNH8WURdvqoTDV1BW4')GROUP BY account_arguments[7]),token_supply AS (SELECTtoken_mint_address,SUM(token_balance) AS total_supplyFROM solana_utils.latest_balancesWHERE token_mint_address IN (SELECT token_address FROM bonkfun_mints)GROUP BY token_mint_address),latest_prices AS (SELECTph.contract_address,ph.priceFROM dex_solana.price_hour phINNER JOIN (SELECTcontract_address,MAX(hour) AS max_hourFROM dex_solana.price_hourGROUP BY contract_address) latest ON ph.contract_address = latest.contract_address AND ph.hour = latest.max_hour),prices_24h_ago AS (SELECTph.contract_address,ph.priceFROM dex_solana.price_hour phINNER JOIN (SELECTcontract_address,MAX(hour) AS hour_24h_agoFROM dex_solana.price_hourWHERE hour <= NOW() - INTERVAL '24' hourGROUP BY contract_address) old ON ph.contract_address = old.contract_address AND ph.hour = old.hour_24h_ago),buy_volume_24h AS (SELECTtoken_bought_mint_address AS token_address,SUM(amount_usd) AS buy_volume_usd_24hFROM dex_solana.tradesWHERE