Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/withDEVBought AS (SELECT*FROM(SELECTblockchain,project,version,block_time as Time,token_pair,token_bought_amount as Amount_Bought,'<a href=https://etherscan.io/tx/' || tx_hash || ' target=_blank">' || tx_hash || '</a>' as TxFROMuniswap.tradesWHEREblockchain = 'ethereum'AND token_bought_address = 0x5caf454ba92e6f2c929df14667ee360ed9fd5b26UNION ALLSELECTblockchain,project,version,block_time as Time,token_pair,token_bought_amount as Amount_Bought,'<a href=https://polygonscan.com/tx/' || tx_hash || ' target=_blank">' || tx_hash || '</a>' as TxFROMuniswap.tradesWHEREblockchain = 'polygon'AND token_bought_address = 0xa5577d1cec2583058a6bd6d5deac44797c205701UNION ALLSELECTblockchain,project,version,block_time as Time,token_pair,token_bought_amount as Amount_Bought,'<a href=https://arbiscan.io/tx/' || tx_hash || ' target=_blank">' || tx_hash || '</a>' as TxFROMuniswap.tradesWHEREblockchain = 'arbitrum'AND token_bought_address = 0x91F5dC90979b058eBA3be6B7B7e523df7e84e137))SELECT*FROMDEVBoughtWHERETime >= CURRENT_TIMESTAMP - INTERVAL '{{In_Days}}' DAYORDER BYTime DESC