Query editor
with clearpool_borrow as (select date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_borrow, receiver,'Amber Group' as namefrom clearpool_ethereum.PoolMasterAmberGroup_evt_Borrowedunionselect date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_borrow, receiver,'Auros' as namefrom clearpool_ethereum.PoolMasterAuros_evt_Borrowedunionselect date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_borrow, receiver,'FBG Capital' as namefrom clearpool_ethereum.PoolMasterFBGCapital_evt_Borrowedunionselect date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_borrow, receiver,'FolkVang' as namefrom clearpool_ethereum.PoolMasterFolkVang_evt_Borrowedunionselect date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_borrow, receiver,'WinterMute' as namefrom clearpool_ethereum.PoolMasterWinterMute_evt_Borrowedunionselect date_trunc('day', call_block_time) as dt, call_tx_hash, amount/1e6 as amount_borrow, receiver,'others' as namefrom clearpool_finance_ethereum.PoolMaster_call_borrowwhere call_success = trueunionselect date_trunc('day', call_block_time) as dt, call_tx_hash, amount/1e6 as amount_borrow, receiver,'others' as namefrom clearpool_finance_ethereum.PoolMasterv2_call_borrowwhere call_success = trueunionselect date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_borrow, receiver,'Alphanonce' as namefrom clearpool_finance_ethereum.AlphanoncePoolEth_evt_Borrowedunionselect date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_borrow, receiver,'Fasanara' as namefrom clearpool_finance_ethereum.FasanaraPoolETH_evt_Borrowedunionselect date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_borrow, receiver,'WinterMute' as namefrom clearpool_finance_ethereum.WintermutePoolETH_evt_Borrowedunionselect date_trunc('day', call_block_time) as dt, call_tx_hash, amount/1e6 as amount_borrow, receiver,'on polygon' as namefrom clearpool_polygon.PoolMaster_call_borrowwhere call_success = true),clearpool_repay as (select date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_repay,'Amber Group' as namefrom clearpool_ethereum.PoolMasterAmberGroup_evt_Repaidunionselect date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_repay,'Auros' as namefrom clearpool_ethereum.PoolMasterAuros_evt_Repaidunionselect date_trunc('day', evt_block_time) as dt, evt_tx_hash, amount/1e6 as amount_repay,'FBG Capital' as name