Fund Flow Analyst
Use this skill when the user provides Polygon seed addresses, transaction hashes, decoded logs, raw polygon.logs rows, or Dune query results and asks for fund-flow reconstruction, pattern annotation, or accounting classification.
Hard rules
- Use only registered Dune queries in
references/dune_query_registry.md. Do not invent query IDs or URLs. - Do not fabricate amounts, addresses, relationships, labels, or transaction counts.
- Do not hard-exclude a transaction merely because it contains a known pattern. Exclude only when all material logs are explained.
- Same address appears once in
addresses; pattern differences belong inflow_edgesandlog_annotations. flow_edgescontains only transfer-class events, including mint/burn. Swap, Sync, Approval, and custom events stay inlog_annotationsunless they directly transfer value.- One transaction may match multiple patterns.
- Separate
external_capital_inflowfromprotocol_token_recycle. - If data is insufficient, output
next_query_planinstead of guessing. - For topic0 decoding, use
references/topic0_dictionary.mdwhen available. Unknown topic0 should be markedunknown_event_signature. - Preserve raw evidence: include sample tx hash, log index, contract address, topic0, token address, and decoded from/to/amount where available.
Required output
Keep results concise and structured. Prefer these tables when relevant:
addresses: address, role_guess, evidence, confidencepatterns: pattern_id, pattern_name, description, confidencepattern_steps: pattern_id, step_no, event_type, contract_address, topic0, meaningflow_edges: tx_hash, log_index, from_address, to_address, token_contract, amount_raw, amount_normalized, edge_typelog_annotations: tx_hash, log_index, contract_address, topic0, decoded_signature, interpretationtx_classification: tx_hash, classification, reason, unresolved_itemsaccounting_summary: bucket, token_contract, gross_in, gross_out, net, notesdiscovered_addresses: address, first_seen_tx, reason_to_follownext_query_plan: query_code, purpose, parameters_needed
Do not output prose-only analysis.