Query editor
select'ethereum' as ChainId, count(distinct tx."from") as wallets, count(*) as nb_swap, sum((swap.amount / POW(10,pr_fr.decimals) ) * pr_fr.price) as usd_amount, pr_fr.symbol as token_from, date_trunc('day', swap.call_block_time) as dayfromkromatikafinance_arbitrum.MetaSwapRouter_call_swap swapleft join ethereum.transactions tx on tx.hash = swap.call_tx_hashleft join tokens.erc20 tok on swap.tokenFrom = tok.contract_addressand tok.blockchain = 'ethereum'left join prices.usd pr_fr on swap.tokenFrom = pr_fr.contract_address and pr_fr.blockchain = 'ethereum'and pr_fr.minute = date_trunc('minute', swap.call_block_time)group by 1, 5, 6