Query editor
with sway as (select bytearray_to_uint256(calldata[2])/pow(10,6) as amount_s,bytearray_to_uint256(calldata[5])/pow(10,6) as amount_b,transaction_hash as tx,block_time as timefrom starknet.callswhere --transaction_hash = 0x02f5ee633746f4e998e5a9451859b45fc0c49fb9d2b1921b5f83359a3ef67a63 andcall_type = 'CALL'and entry_point_selector = 0x01171593aa5bdadda4d6b0efde6cc94ee7649c3163d5efeb19da6c16d63a2a63 --swapand contract_address = 0x04270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f --avnuand TRY_CAST(calldata[1] AS VARCHAR) = '0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8' --usdcand TRY_CAST(calldata[4] AS VARCHAR) = '0x004878d1148318a31829523ee9c6a5ee563af6cd87f90a30809e5b0d27db8a9b' --sway)select date_trunc('day',time) as day, 'SWAY/USDC' as tokenSymbol, 18 as deci,sum(amount_s)/sum(amount_b) as prfromswaygroup by 1,2,3