Query editor
-- $STONKEX bought back on the market, by the two contracts that do the buying.---- Reading only StonkFeeSplitter's own `Processed` events — which is what this chart did at first —-- missed the larger buyer entirely. The Stockify index at 0x44b5c100…3dcbd is the coin's-- buyback-and-burn index (`factory()` is the INDEX_FACTORY this exchange launches with, `coin()` is-- $STONKEX, `mode()` is 1 = buyback) and it is fed the creator share through the locker's creator-- splits, so it never appears as `creator` on a FeesCollected event and is invisible to any query-- that follows the splitter alone.---- BOUGHT IS NOT BURNED, and conflating the two overstates buying by roughly three times. Of the-- 68.6M $STONKEX the index has burned, 26.1M arrived from the fee locker as fee income already-- denominated in $STONKEX and 21.1M was a one-off seed from the owner — neither was purchased.-- Only what arrives from a pool or a DEX settlement contract was actually bought, so the internal-- sources below are excluded by address rather than by guesswork.---- V2 adds two of them. Its fee locker pays the platform share to StonksExchangeFeeSellerV2, which-- forwards the quote leg to the splitter as it is: on a $STONKEX-quoted coin that is fee income-- already in $STONKEX, the same thing the V1 locker's payments are. The seller's SALES of our coin-- leg are a different matter: the pool pays the splitter directly, so they arrive from a pool and-- count as bought, exactly as the V1 splitter's own memecoin sales always have.WITH buyers (address, label) AS (VALUES (0x44b5c100513e6f625037c039300c5bc72b73dcbd, 'Stockify index'),(0xfBC9eE130f1CFeeb192b18CF1202865d757FA680, 'fee splitter')),internal_sources (address) AS (VALUES (0x71D1D363176723f85d98B8B430DF33cde89f0A7f), -- V1 fee locker: fee income paid in $STONKEX(0x43555104f569D17026037E5637691b95c79fD03A), -- V2 fee locker: the same, before the seller(0x8dD0b9E2e9756eDE0C3463f929614AE995A18f59), -- V2 fee seller: forwards the quote leg as-is(0x81dd3174d55FcF396E92122881cA591705C4e1e1) -- owner: the index's initial seed),bought AS (SELECTt.block_date,b.label,sum(t.amount) AS stonkexFROM tokens.transfers tJOIN buyers b ON b.address = t.toWHERE t.blockchain = 'base'AND t.contract_address = 0x5ab000ff9B9FfE0349CE5ffA5fD86f217C3680F5AND t.block_date >= DATE '2026-08-17'AND t."from" NOT IN (SELECT address FROM internal_sources)GROUP BY 1, 2),-- $STONKEX is itself launched on this pad, so its price comes from its own pool rather than from-- prices.day — the same precedence the fee table uses, and for the same reason.px AS (SELECTblock_date,approx_percentile(cast(usd AS double) / cast(token_amount AS double), 0.5) AS priceFROM query_8623444WHERE token = 0x5ab000ff9B9FfE0349CE5ffA5fD86f217C3680F5AND usd IS NOT NULLAND token_amount > 0GROUP BY block_date),daily AS (