Query editor
with raw_tx as (select 'deposit' as event, evt_block_time, cast(amount/1e18 as double) as amount, user as address, evt_tx_hashfrom davos_ethereum.Interaction_evt_Deposit -- the user makes a deposit as collateralwhere cast(amount/1e18 as double) is not null and cast(amount/1e18 as double) > 0union allselect 'withdraw' as event, evt_block_time, cast(amount/1e18 as double) as amount, user as address, evt_tx_hashfrom davos_ethereum.Interaction_evt_Withdraw -- the user withdraws the deposit as collateralwhere cast(amount/1e18 as double) is not null and cast(amount/1e18 as double) > 0union allselect 'borrow' as event, evt_block_time, cast(amount/1e18 as double) as amount, user as address, evt_tx_hashfrom davos_ethereum.Interaction_evt_Borrow -- user takes out a loanwhere cast(amount/1e18 as double) is not null and cast(amount/1e18 as double) > 0union allselect 'repay' as event, evt_block_time, cast(amount/1e18 as double) as amount, user as address, evt_tx_hashfrom davos_ethereum.Interaction_evt_Payback -- the user repays his debtwhere cast(amount/1e18 as double) is not null and cast(amount/1e18 as double) > 0)select * from raw_tx