Query editor
WITHget_transfers AS (SELECTtx_hash,"from","to",contract_address,amountFROM(SELECTevt_tx_hash AS tx_hash,"from","to",erc20transfers.contract_address,value as amountFROMerc20_ethereum.evt_Transfer erc20transfersWHERE0x0000000000000000000000000000000000000000 not in ("from", "to")AND evt_block_time > now() - interval '1' day -- Changed {{days_num}} to '1'UNION ALLSELECTtx_hash,"from","to",0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 as contract_address,value as amountFROMethereum.traces tracesWHEREvalue > uint256 '0'AND block_time > now() - interval '1' day -- Changed {{days_num}} to '1')),logs AS (SELECT *FROM uniswap_ethereum.V2DutchOrderReactor_evt_FillWHERE evt_block_time > now() - interval '1' day -- Changed {{days_num}} to '1'UNION ALLSELECT *FROM uniswap_ethereum.ExclusiveDutchOrderReactor_evt_FillWHERE evt_block_time > now() - interval '1' day -- Changed {{days_num}} to '1'),txs_with_evt_fill AS (SELECTtx.hash as tx_hash,tx."from" as from_address,tx."to" as to_address,tx.block_time,x.swapper,coalesce(labels.name, cast(x.filler as varchar)) as filler,x.filler as filler_address,tx.gas_used * tx.gas_price / 1e18 * pu.price as tx_fee,ROW_NUMBER() OVER (PARTITION BYtx.hashORDER BYx.swapper) as rn