Query editor
WITHstake_unstake_events AS (SELECTevt_block_time AS time,CASEWHEN tr."from" = 0x0000000000000000000000000000000000000000 THEN CAST(tr.value AS INT256)ELSE - CAST(tr.value AS INT256)END AS amount_changeFROMerc20_blast.evt_transfer trWHEREcontract_address = 0x1e046bc49eeebd0f5633caa9638fe977cfdaf0c8AND (tr."from" = 0x0000000000000000000000000000000000000000OR tr."to" = 0x0000000000000000000000000000000000000000))-- Manual rowSELECTTIMESTAMP '2024-06-26 14:00:00' AS time, -- Launch date0 AS vault_shares -- staked pre-launchUNION-- Computed rowsSELECTtime,ROUND(SUM(amount_change) OVER (ORDER BYtime ASC) / 1e18,0) AS vault_sharesFROMstake_unstake_eventsORDER BYtime DESC;