Query editor
--- bridge contract 0x43019F8BE1F192587883b67dEA2994999f5a2de2--- treasury address 0xefef4558802bf373ce3307189c79a9cab0a4cb9cwith degen_txs as (select evt_block_time, valuefrom erc20_base.evt_Transferwhere to = 0xefef4558802bf373ce3307189c79a9cab0a4cb9cand contract_address = 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefedunion allselect evt_block_time, -value as valuefrom erc20_base.evt_Transferwhere "from" = 0xefef4558802bf373ce3307189c79a9cab0a4cb9cand contract_address = 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed),total as (selectdate_trunc('hour', evt_block_time) as dt,sum(value/1e18) as amount,count(*) as txsfrom degen_txsgroup by 1)select*,sum(amount) over(order by dt asc) as total_amount,sum(amount) over(order by dt asc) * (select price from query_3558896) as total_amount_usd_currentfrom totalorder by dt desc