Query editor
WITH transfers AS (SELECTblock_time,block_number,"index" AS log_index,LOWER(json_extract_scalar(decoded_json, '$.from')) AS from_address,LOWER(json_extract_scalar(decoded_json, '$.to')) AS to_address,TRY_CAST(COALESCE(json_extract_scalar(decoded_json, '$.value'),json_extract_scalar(decoded_json, '$.amount')) AS DOUBLE) / 1e6 AS amount_ausdFROM monad.logs_decodedWHERE contract_address =0xf58e7adc6f4ec524c09b7b6f058d3ab48d7cd65e-- Évite le double comptage ERC20 + TIP20AND namespace = 'erc20'AND event_name = 'Transfer'-- Réduit les données scannéesAND block_date >= DATE '2026-06-01'),movements AS (SELECTblock_time,block_number,log_index,CASEWHEN from_address ='0x0000000000000000000000000000000000000000'THEN amount_ausdWHEN to_address ='0x0000000000000000000000000000000000000000'THEN -amount_ausdEND AS delta_ausdFROM transfersWHERE from_address ='0x0000000000000000000000000000000000000000'OR to_address ='0x0000000000000000000000000000000000000000'),event_tvl AS (SELECT