Query editor
-- Panel 4: Launcher treasury exposure-- Tokens this wallet launched in the last 60 days, and every time the launcher wallet moved them out-- in the 21 days after launch, next to the price that day.-- Price: DEX trades (dex.trades) once the token trades on a DEX, otherwise four.meme bonding curve-- (cost in BNB / tokens) at a hardcoded BNB = 700 USD. No prices.usd_latest.with p as (select from_hex(replace(lower(trim('{{wallet}}')), '0x', '')) as w),-- direct contract deployments (the wallet is the creator)direct_deploys as (select 'bnb' as blockchain, address as token, block_time as deployed_at, 'direct deploy' as launch_typefrom bnb.creation_traceswhere block_month >= date_trunc('month', current_date - interval '60' day)and block_time >= current_date - interval '60' dayand "from" = (select w from p)union allselect 'arbitrum', address, block_time, 'direct deploy'from arbitrum.creation_traceswhere block_month >= date_trunc('month', current_date - interval '60' day)and block_time >= current_date - interval '60' dayand "from" = (select w from p)union allselect 'base', address, block_time, 'direct deploy'from base.creation_traceswhere block_month >= date_trunc('month', current_date - interval '60' day)and block_time >= current_date - interval '60' dayand "from" = (select w from p)),-- four.meme launches on BNB (factory deploys, creator recorded in the event)fourmeme_launches as (select 'bnb' as blockchain, token, evt_block_time as deployed_at, 'four.meme' as launch_typefrom four_meme_bnb.tokenmanager2_evt_tokencreatewhere evt_block_date >= current_date - interval '60' dayand creator = (select w from p)),launches_raw as (select * from direct_deploysunion allselect * from fourmeme_launches),-- keep only contracts that are ERC20 tokenslaunches as (select l.blockchain, l.token, l.deployed_at, l.launch_type,coalesce(e.symbol, '?') as symbol,coalesce(e.decimals, 18) as decimals,cast(l.deployed_at as date) as lo,cast(l.deployed_at as date) + interval '21' day as hifrom launches_raw lleft join tokens.erc20 eon e.blockchain = l.blockchain and e.contract_address = l.tokenwhere l.launch_type = 'four.meme' or e.contract_address is not null),-- launcher wallet moving its own token out, within 21 days of launchoutflows as (select 'bnb' as blockchain, t.contract_address as token, t.evt_block_time as block_time,t."to" as recipient, cast(t.value as double) / pow(10, l.decimals) as amountfrom erc20_bnb.evt_Transfer tjoin launches lon l.blockchain = 'bnb' and l.token = t.contract_addressand t.evt_block_date between l.lo and l.hi