Query editor
-- Registry: dune.bitgetwallet.result_bnb_meme_launchpad_token_registry_full-- (source query 8157878; extends 8091833 with X Mode split + Clanker BSC)---- TWO SOURCES, VERIFIED DISJOINT-- internal -- four.meme TokenManager v1/v2 and Flap Portal buy/sell events.-- This is the only chain where the bonding curve is genuinely off-- DEX: dex.trades on BNB indexes no four.meme or flap project.-- external -- dex.trades, i.e. post-graduation AMM trading.-- Query 8089622 reported ONLY the internal curve, so it was missing roughly-- $10.4B of post-graduation AMM volume over 30D. Overlap was measured before-- combining: of 1,944,359 four.meme curve events only 167 share tx and token-- with a dex.trades row (0.053% by volume), and of 1,931,648 Flap events only-- 666 (0.045%). Those are graduation transactions. Summing is safe.---- PRICING: the curve emits BNB, not USD. 8089622 converted at a daily average-- WBNB price; this uses hourly.---- is_bot_trading comes from result_bnb_meme_launchpad_token_bot_flags-- (source query 8170159), refreshed WEEKLY, and judged across BOTH venues.-- It is deliberately NOT computed inline: the same definition would then exist-- in two places and could drift, and the ranking views need the token-level-- table anyway. On this chain 98.4% of bot volume sits on the bonding curve-- rather than the AMM -- the curve is a deterministic pricing function and so-- cheap to farm, while the AMM has slippage and real counterparties.---- VOLUME CONVENTION -- collapse-then-sum, shared across all four chains.WITH bnb_prices AS (SELECT timestamp AS hr, AVG(price) AS priceFROM prices.hourWHERE timestamp >= CAST(CURRENT_DATE - INTERVAL '30' DAY AS TIMESTAMP)AND timestamp < CAST(CURRENT_DATE AS TIMESTAMP)AND blockchain = 'bnb'AND contract_address = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095cGROUP BY 1),registry AS (SELECT token_address, MAX_BY(platform, created_at) AS platformFROM dune.bitgetwallet.result_bnb_meme_launchpad_token_registry_fullGROUP BY 1),bot_flags AS (SELECT token_addressFROM dune.bitgetwallet.result_bnb_meme_launchpad_token_bot_flagsWHERE is_bot_trading),curve_raw AS (SELECT evt_block_date AS day, evt_block_time AS ts, token AS token_address,evt_tx_hash AS tx_hash, evt_index, account AS trader,CAST(etherAmount AS DOUBLE) / 1e18 AS native_volumeFROM four_meme_bnb.tokenmanager_evt_tokenpurchaseWHERE evt_block_date >= CURRENT_DATE - INTERVAL '30' DAY AND evt_block_date < CURRENT_DATEUNION ALLSELECT evt_block_date, evt_block_time, token, evt_tx_hash, evt_index, account,CAST(etherAmount AS DOUBLE) / 1e18FROM four_meme_bnb.tokenmanager_evt_tokensaleWHERE evt_block_date >= CURRENT_DATE - INTERVAL '30' DAY AND evt_block_date < CURRENT_DATEUNION ALLSELECT evt_block_date, evt_block_time, token, evt_tx_hash, evt_index, account,CAST(cost AS DOUBLE) / 1e18FROM four_meme_bnb.tokenmanager2_evt_tokenpurchase