Query editor
with-- dsr as (-- select-- call_block_time as time,-- pow(cast(data as double) / 1e27, 365 * 24 * 60 * 60) - 1 as dsr-- from-- maker_ethereum.pot_call_file-- where-- call_success-- and data is not null-- ),pot_calls as (selectcall_block_time as time,call_tx_hash as tx_hash,call_trace_address as trace_address,cast(output_tmp as int256) as chi,null as wadfrommaker_ethereum.pot_call_dripwherecall_successunion allselectcall_block_time,call_tx_hash,call_trace_address,null,cast(wad as int256)frommaker_ethereum.pot_call_joinwherecall_successand wad != 0union allselectcall_block_time,call_tx_hash,call_trace_address,null,- cast(wad as int256)frommaker_ethereum.pot_call_exitwherecall_successand wad != 0),pot_call_ordering as (selecttime,(time, tx_index, trace_address) as seq,"from" as depositor,wad,last_value(chi) ignore nulls over (order bytime,tx_index,trace_address) as chi,sum(wad) over (