Query editor
WITHstatic as (selectdate_add('day', -7, date_trunc('day', current_timestamp)) as ts_from),transactions as (select*fromarbitrum.transactionswheresuccessand transactions.block_time >= (selectts_fromfromstatic)),traces as (select*fromarbitrum.traceswheretx_successand successand traces.block_time >= (selectts_fromfromstatic)and traces."to" in (selectaddressfromquery_2238512 --[DICT] Routers & Aggregators & Aggregators of Aggregatorswhereblockchain = 'arbitrum'and project = '1inch')),transfers as (selectblock_time,tx_hash,casewhen value > uint256 '0' then 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1 -- WETHelse "to"end as contract_address,case substr(input, 1, 4)when 0xa9059cbb then bytearray_to_uint256 (substr(input, 37, 32)) -- transferwhen 0x23b872dd then bytearray_to_uint256 (substr(input, 69, 32)) -- transferFromelse value -- ETHend as amount,trace_addressfromarbitrum.traceswhere