Query editor
withall_evts as (selectblock_time, topic0, topic1, datafrom ethereum.logswhereblock_number >= 14751354and contract_address = 0x0a08673E3d7c454E1c6b27acD059C50Df6727FC9and (topic0 = 0x1d9308f6b22a2754a1c622bb30889e8f8f956c83e524d039e9d65d5f052eb908 -- withdrawor topic0 = 0xf400e72e69ef4402819dfc57eeddc66f5eb69bf405e0e8098b1946ec1ac14a22 -- lock))/**,add_evts as (withtraces as (select-- lockAdditional(bytes32 kek_id, uint256 addl_liq)block_time, "from" as staker_address, cast(bytearray_to_uint256(bytearray_substring(input, 5 + 32, 32)) as int256) as liquidity_bnfrom ethereum.traceswhereblock_number >= 14751354and bytearray_substring(input, 1, 4) = 0xb85efd06and "to" = 0x0a08673E3d7c454E1c6b27acD059C50Df6727FC9and tx_success)select * from traces)*/-- Traces are too compute heavy so we hardcode additions which aren't that much,add_evts as (values(timestamp '2022-07-10 21:04:54.000', 0x002ee33092457900515a4249e3ec1cd2b2dc8c32, cast('9818874927888287051984' as int256)),(timestamp '2022-05-13 09:16:18.000', 0xa1c6211514de33adc89db0c0c1b9769e5f8d3653, cast('1595572685604081359348286' as int256)),(timestamp '2022-07-10 17:53:06.000', 0x9750fc4b8194703535a909e1a39df846d319b91d, cast('49103095618450674614339' as int256)),(timestamp '2022-05-28 07:37:33.000', 0xda4ef66408296c3953ee4d11e8f35042bea18048, cast('89494740608502145559797' as int256)),(timestamp '2023-01-13 23:50:23.000', 0xc8f4a61206ec59f18ca19369b4f9da513dda29d2, cast('781830585223496646411' as int256)),(timestamp '2022-07-12 23:59:26.000', 0x7a3891ccefd1ca0e9b2ef0cdd861561985e5635b, cast('15299152677349035896225' as int256)),(timestamp '2023-02-23 03:58:47.000', 0xc8f4a61206ec59f18ca19369b4f9da513dda29d2, cast('960251192632742551755' as int256)),(timestamp '2022-08-23 07:38:54.000', 0x4d003d754b9f4353fe9809d687054e9e6fc9b1ee, cast('2536307363289903034888' as int256)),(timestamp '2022-09-29 09:35:23.000', 0x8fea432f99784a3d6196c4e6eda89e90c65bd5cb, cast('26858156417923793426629' as int256)),(timestamp '2022-05-28 14:19:18.000', 0x5e95d53514a84d247bacbcbaf219271b81cf49df, cast('98551350155272876443643' as int256)),(timestamp '2022-05-27 12:35:25.000', 0x5bed53f1419e3a5d5585de3c87ee2e4e2863b12d, cast('615812504585948301987' as int256)),(timestamp '2022-05-21 18:18:12.000', 0x3df7a61a16e75a08659cd510278029b9a203fcd2, cast('36934159132742114828300' as int256)),(timestamp '2022-07-24 07:42:05.000', 0x3561bd2491eed6090b4d561074544df1e1f08405, cast('1354220479404624834315' as int256)),(timestamp '2022-08-29 13:26:56.000', 0x3561bd2491eed6090b4d561074544df1e1f08405, cast('9473502451328530992478' as int256)),(timestamp '2022-05-29 15:49:52.000', 0xcb520a661cec76cca41c94bfeaece953343e98b3, cast('5757872889146788892242' as int256)),(timestamp '2022-05-20 20:30:36.000', 0x9fe6c6d8ec81726779aa205ba64ff516de6e7e65, cast('2504034583420882366362358' as int256)),(timestamp '2023-01-26 20:10:59.000', 0xc8f4a61206ec59f18ca19369b4f9da513dda29d2, cast('647577004279562437685' as int256)),