Query editor
--- get last tx in the poolwith usdc_amount as (selectvalue/1e6 as usdc_value, evt_tx_hash, evt_block_timefromerc20_ethereum.evt_Transferwhereevt_tx_hash in (select tx_hash from ethereum.traces_decoded where contract_name = 'OLAS' and function_name = 'transfer' and block_time > timestamp '2023-07-01')and contract_address = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48),olas_amount as (selectvalue/1e18 as olas_value, evt_tx_hash, evt_block_timefromerc20_ethereum.evt_Transferwhereevt_tx_hash in (select tx_hash from ethereum.traces_decoded where contract_name = 'OLAS' and function_name = 'transfer' and block_time > timestamp '2023-07-01')and contract_address = 0x0001a500a6b18995b03f44bb040a5ffc28e45cb0) (select DISTINCT (usdc_value/olas_value) as token_price, usdc_value, olas_value, usdc_amount.evt_tx_hash, usdc_amount.evt_block_timefrom usdc_amountinner join olas_amounton usdc_amount.evt_tx_hash = olas_amount.evt_tx_hashwhereusdc_amount.evt_tx_hash not in (0xf66e237753ac502cd5c34c8595b71ceed9b87764faedfe52bd06b28535b11083, 0xdd6163e7db42d7c233fd7647d4ebe14a9e8b32d2a622d9c8e388107bf5b89702)order by usdc_amount.evt_block_time desc)