Query editor
/* Migration success :)There are some cases such as unnest/sequence and array/json functions the migrator won't take care of for you(but we have examples of in the docs linked below!)If you're still running into issues, check out the doc examples https://dune.com/docs/reference/dune-v2/query-engine/or reach out to us in the Dune discord in the #dune-sql channel.*/SELECTCOUNT(DISTINCT tx_from) AS swappersFROMdex.tradesWHERE(blockchain = 'ethereum'AND tx_to = 0x881d40237659c251811cec9c364ef91dc08d300c)or(blockchain = 'polygon'and tx_to = 0x1a1ec25DC08e98e5E93F1104B5e5cdD298707d31)