Query editor
-- here the substr index is the same with the example:https://dune.com/queries/2443624WITH transfers AS((--star chest catch up contractSELECT(bytearray_to_int256(SUBSTR(data, 65, 32))/1e+18) as value,topic1 as walletFROM polygon.logsWHERE contract_address = 0x9a818e78991df787bd706f228c9e99cf81e10cffAND tx_hash <> 0xee0221f1a9f0fcf2b0683841a1264455c79912e5ecfc03088163fe69c9029000)UNION ALL-- web store contract(SELECT(bytearray_to_int256(SUBSTR(data, 65, 32))/1e+18) as value,topic1 as walletFROM polygon.logsWHERE contract_address = 0xc9f7dd5dca7848798210008e8493f385f0771893)UNION ALL-- chest sale in ETH(SELECT(bytearray_to_int256(SUBSTR(data, 65, 32))/1e+18) as value,topic1 as walletFROM ethereum.logsWHERE contract_address = 0x011C1a01012f952cFf47d050CA23704612Ce0ae8))SELECT (CAST(SUM(value) AS DECIMAL) + 24700000) AS total_volumeFROM transfers