Query editor
WITH exec_votes AS (SELECTcall_tx_hash AS exec_tx_hash,call_block_time AS exec_time,call_block_number AS exec_blockFROM maker_ethereum.pause_call_execWHEREcall_success = TRUE), token_transfers AS (SELECTevt_tx_hash AS transfer_tx_hash,evt_block_time AS transfer_time,evt_block_number AS transfer_block,"from","to",CASEWHEN contract_address = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48THEN value / 1e6 /* USDC with 6 decimals */ELSE value / 1e18 /* Default for tokens with 18 decimals */END AS token_amount,contract_addressFROM erc20_ethereum.evt_transfer)SELECTexec_votes.exec_tx_hash,exec_votes.exec_time,token_transfers.transfer_tx_hash,token_transfers.transfer_time,token_transfers."from",token_transfers."to",token_transfers.token_amount,token_transfers.contract_addressFROM exec_votesJOIN token_transfersON exec_votes.exec_tx_hash = token_transfers.transfer_tx_hashWHEREtoken_transfers.transfer_block >= exec_votes.exec_blockORDER BYexec_votes.exec_time ASC