Query editor
/* Success! If you're still running into issues, check out https://dune.com/docs/query/syntax-differences/ or reach out in the #dune-sql Discord channel. */WITH---------------------------------------------------------------------------------------------------------- 1inch and cow buy sidedex_buys_daily_map as (selectblock_date,tx_from,token_bought_symbol,token_bought_address,blockchain,tx_hash,token_bought_amount,amount_usdfrom dex.tradeswheretx_from in(0x49bcbc58848ac642b48f3d824d8b728a1045d08b -- 1inch,0x1d80acdcae2257329557ae12c1d1fc21361def30 -- 1inch,0x1e9d349cec77fea6481f009593101d0e20a69490 -- 1inch,0x047a2fbe8aef590d4eb8942426a24970af301875 -- cow,0xe3067c7c27c1038de4e8ad95a83b927d23dfbd99 -- cownot always goign to work. this wtx's doesn't work https://etherscan.io/tx/0x76b7964263d09dadf791c628c93504d3271f7c0382e73a7903f899afe79b11f9#eventlog tx's goes to 0x242a0d755e6bbcB0b000E5504348a2d3EA208d06,0x241f4d70e8f2ea8ab160e376236029565a1f04bf -- cow,0x9b7e7f21d98f21c0354035798c40e9040e25787f -- cow,0x0ab21031124af2165586fbb495d93725a372c227 -- cow,0x0ddcb0769a3591230caa80f85469240b71442089 -- cow,0x4339889fd9dfca20a423fba011e9dff1c856caeb -- cow,0xc9f2e6ea1637e499406986ac50ddc92401ce1f58 -- cow,0xbf54079c9bc879ae4dd6bc79bce11d3988fd9c2b -- cow,0x6F799f4bF6c1C56FB8d890E9E0FFF2934b0dE157 -- cow,0x9008D19f58AAbD9eD0D60971565AA8510560ab41-- cow settlement,0x40a50cf069e992aa4536211b23f286ef88752187 -- cow sender) andblock_date >= CURRENT_TIMESTAMP - INTERVAL '21' dayand amount_usd > 300000AND token_sold_symbol IN ('USDT', 'USDC', 'DAI', 'USDD', 'TUSD', 'LUSD', 'mkUSD', 'crvUSD')AND token_bought_symbol IN ('WETH', 'ETH', 'stETH', 'mevETH', 'pETH', 'rETH', 'sfrxETH', 'sETH', 'alETH', 'frxETH', 'swETH','ankrETH', 'wstETH', 'aETH', 'cbETH', 'fxcbETH')),get_txfrom as (selectblockchain,block_time,block_hash,contract_address,bytearray_ltrim(topic1) tx_from,tx_hashfrom evms.logswhere index = 0),dex_buys_daily1inch as (selectdex_buys_daily_map.block_date as "date",get_txfrom.tx_from tx_from,