Query editor
WITH deposits AS (SELECTe.user AS wallet_address,e.evt_block_time AS time,e.amount AS amountFROM morpheus_ai_base.builders_evt_userdeposited eWHEREe.builderPool = 0x20ba70f2bbdc384bbc0e016ec2e888c38e6d1a5454555eefdc91d546fccca932),withdrawals AS (SELECTe.user AS wallet_address,e.evt_block_time AS time,-e.amount AS amount -- Use event data for accurate amountFROM morpheus_ai_base.builders_evt_userwithdrawn eWHEREe.builderPool = 0x20ba70f2bbdc384bbc0e016ec2e888c38e6d1a5454555eefdc91d546fccca932),all_transactions AS (SELECT * FROM depositsUNION ALLSELECT * FROM withdrawals)SELECTwallet_address,time,ROUND(CAST(amount AS DOUBLE) / 1e18, 4) AS amount_tokensFROM all_transactionsWHERE amount IS NOT NULLORDER BY wallet_address, time;