Query editor
--- get last tx in the poolwith usdc_amount as (selectvalue/1e6 as usdc_value, evt_tx_hashfromerc20_ethereum.evt_Transferwhereevt_tx_hash = (select tx_hash from ethereum.traces_decoded where contract_name = 'OLAS' and function_name = 'transfer' and block_time > timestamp '2023-07-01'order by block_time desc limit 1)and contract_address = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48),olas_amount as (selectvalue/1e18 as olas_value, evt_tx_hashfromerc20_ethereum.evt_Transferwhereevt_tx_hash = (select tx_hash from ethereum.traces_decoded where contract_name = 'OLAS' and function_name = 'transfer' and block_time > timestamp '2023-07-01'order by block_time desc limit 1)and contract_address = 0x0001a500a6b18995b03f44bb040a5ffc28e45cb0) (select (usdc_value/olas_value)*1000000000 as fdvfrom usdc_amountleft join olas_amounton usdc_amount.evt_tx_hash = olas_amount.evt_tx_hash)