Query editor
witheventsGns as (selectevt_tx_hash,(value/POW(10,18)) as gnsAmount,0 as ethAmount,evt_block_time,"from" as user,'ADD' as evt_typefromerc20_arbitrum.evt_TransferWHEREcontract_address = 0x18c11fd286c5ec11c3b683caa813b77f5163a122and to = 0xC91B7b39BBB2c733f0e7459348FD0c80259c8471 -- gns/eth lpunion allselectevt_tx_hash,-(value/POW(10,18)) as gnsAmount,0 as ethAmount,evt_block_time,"from" as user,'REMOVE' as evt_typefromerc20_arbitrum.evt_TransferWHEREcontract_address = 0x18c11fd286c5ec11c3b683caa813b77f5163a122 -- gnsand "from" = 0xC91B7b39BBB2c733f0e7459348FD0c80259c8471),eventsEth as (selectevt_tx_hash,0 as gnsAmount,(value/POW(10,18)) as ethAmount,evt_block_time,"from" as user,'ADD' as evt_typefromerc20_arbitrum.evt_TransferWHEREcontract_address = 0x82af49447d8a07e3bd95bd0d56f35241523fbab1 -- wethand to = 0xC91B7b39BBB2c733f0e7459348FD0c80259c8471union allselectevt_tx_hash,0 as gnsAmount,-(value/POW(10,18)) as ethAmount,evt_block_time,"from" as user,'REMOVE' as evt_typefromerc20_arbitrum.evt_TransferWHEREcontract_address = 0x82af49447d8a07e3bd95bd0d56f35241523fbab1and "from" = 0xC91B7b39BBB2c733f0e7459348FD0c80259c8471),events as (select*fromeventsGns