Query editor
-- Impact of the yield distribution at tx 0xac89fd87... (2026-04-28 18:20:11 UTC):-- reward_amount = 44,211.37 iTRY-- vesting period = 22 hours (per user)-- stream_end = 2026-04-29 16:20:11 UTC = unix 1777479611---- Compare wiTRY:iTRY rate just BEFORE the distribution vs at stream_end.-- "Before" = 1 second before the tx block_time (excludes the new reward).-- "After" = exactly stream_end (the new reward is fully vested by then).WITHsnaps AS (SELECT 'Before (T − 1s)' AS label, CAST(from_unixtime(1777400410) AS TIMESTAMP) AS t -- 18:20:10UNION ALLSELECT 'Stream end (T + 22h)', CAST(from_unixtime(1777479611) AS TIMESTAMP) -- 16:20:11 next day),balance_per_snap AS (SELECT s.label, s.t,CAST(SUM(CASE WHEN CAST(tr.evt_block_time AS TIMESTAMP) <= s.t THENCASE WHEN tr."to" = 0xE346C29b5B60Ef870b9724c57ccfbBc631e47DEE THEN CAST(tr.value AS DOUBLE)WHEN tr."from" = 0xE346C29b5B60Ef870b9724c57ccfbBc631e47DEE THEN -CAST(tr.value AS DOUBLE)ELSE 0 ENDELSE 0 END) AS DOUBLE) / 1e18 AS witry_iTRY_balanceFROM snaps sLEFT JOIN erc20_ethereum.evt_Transfer trON tr.contract_address = 0xb492B4aFD9658093694CF9452D5C272e8230F3B0AND (tr."to" = 0xE346C29b5B60Ef870b9724c57ccfbBc631e47DEE OR tr."from" = 0xE346C29b5B60Ef870b9724c57ccfbBc631e47DEE)GROUP BY s.label, s.t),supply_per_snap AS (SELECT s.label, s.t,CAST(SUM(CASE WHEN CAST(tr.evt_block_time AS TIMESTAMP) <= s.t THENCASE WHEN tr."from" = 0x0000000000000000000000000000000000000000 THEN CAST(tr.value AS DOUBLE)WHEN tr."to" = 0x0000000000000000000000000000000000000000 THEN -CAST(tr.value AS DOUBLE)ELSE 0 ENDELSE 0 END) AS DOUBLE) / 1e18 AS witry_total_supplyFROM snaps sLEFT JOIN erc20_ethereum.evt_Transfer trON tr.contract_address = 0xE346C29b5B60Ef870b9724c57ccfbBc631e47DEEGROUP BY s.label, s.t),last_reward_per_snap AS (SELECT s.label, s.t,MAX(CASE WHEN CAST(l.block_time AS TIMESTAMP) <= s.t THEN CAST(l.block_time AS TIMESTAMP) ELSE NULL END) AS last_r_t,MAX_BY(CAST(bytearray_to_uint256(bytearray_substring(l.data, 1, 32)) AS DOUBLE) / 1e18,CASE WHEN CAST(l.block_time AS TIMESTAMP) <= s.t THEN l.block_time ELSE NULL END) AS last_r_amtFROM snaps sLEFT JOIN ethereum.logs lON l.contract_address = 0xE346C29b5B60Ef870b9724c57ccfbBc631e47DEEAND l.topic0 = 0xbb28dd7cd6be6f61828ea9158a04c5182c716a946a6d2f31f4864edb87471aa6GROUP BY s.label, s.t),rates AS (SELECTb.label, b.t,b.witry_iTRY_balance,