Query editor
WITH defisaver_feereciever AS (SELECTDATE_TRUNC('minute', evt_block_time) AS minute,contract_address,evt_tx_hash,CASEWHEN evt_tx_hash IN (SELECTevt_tx_hashFROM aave_v2_ethereum.LendingPool_evt_Borrow)THEN 'AAVE_v2'WHEN evt_tx_hash IN (SELECTevt_tx_hashFROM aave_v2_ethereum.LendingPool_evt_Deposit)THEN 'AAVE_v2'WHEN evt_tx_hash IN (SELECTevt_tx_hashFROM aave_v2_ethereum.LendingPool_evt_Withdraw)THEN 'AAVE_v2'WHEN evt_tx_hash IN (SELECTevt_tx_hashFROM aave_v2_ethereum.LendingPool_evt_Repay)THEN 'AAVE_v2'WHEN evt_tx_hash IN (SELECTevt_tx_hashFROM aave_v3_ethereum.Pool_evt_Borrow)THEN 'AAVE_v3'WHEN evt_tx_hash IN (SELECTevt_tx_hashFROM aave_v3_ethereum.Pool_evt_Repay)THEN 'AAVE_v3'WHEN evt_tx_hash IN (SELECTevt_tx_hashFROM aave_v3_ethereum.Pool_evt_Supply)THEN 'AAVE_v3'WHEN evt_tx_hash IN (SELECTevt_tx_hashFROM aave_v3_ethereum.Pool_evt_Withdraw)THEN 'AAVE_v3'WHEN evt_tx_hash IN (SELECTevt_tx_hashFROM liquity_ethereum.ActivePool_evt_ActivePoolLUSDDebtUpdated)THEN 'LIQUITY'