Query editor
WITH-- ===========================================-- BASE DATA: All Tokenizations Combined-- ===========================================v3_tokenizations AS (SELECTclankerToken,lpTokenId,participantType,feePreference,vault,recipient,shares,evt_block_time,evt_tx_hash,evt_tx_from,'V3.1.0' as versionFROM poolfans_base.clankertokenizerv3_1_0_evt_tokenizationfinalized),v4_tokenizations AS (SELECTclankerToken,adminIndex as lpTokenId,NULL as participantType,feePreference,vault,recipient,shares,evt_block_time,evt_tx_hash,evt_tx_from,'V4' as versionFROM poolfans_base.clankerv4tokenizer_evt_tokenizationfinalized),all_tokenizations AS (SELECT * FROM v3_tokenizationsUNION ALLSELECT * FROM v4_tokenizations),-- ===========================================-- METRICS: Protocol Overview-- ===========================================protocol_overview AS (SELECTCOUNT(DISTINCT clankerToken) as total_tokens_tokenized,COUNT(DISTINCT vault) as total_vaults,COUNT(DISTINCT recipient) as total_unique_recipients,COUNT(DISTINCT evt_tx_from) as total_unique_initiators,COUNT(*) as total_tokenization_events,SUM(CAST(shares AS DOUBLE) / 1e18) as total_shares_minted,MIN(evt_block_time) as first_tokenization,MAX(evt_block_time) as latest_tokenization,DATE_DIFF('day', MIN(evt_block_time), MAX(evt_block_time)) as days_activeFROM all_tokenizations),-- ===========================================