Query editor
-- top 5 pools ranked by share of 1inch volume routed to ECLPs ---- note: removed GYD pools for volume percentage to keep the figure meaningful,-- as there are almost no other trading pools for GYD paired asset, apart from the uniswap gyd-usdc pool ---- a bug: when adding arbitrum to 1inch trade table there is no result --with tt_eclp as (selecttoken_pair,blockchain,sum(eclp_volume) as eclp_ttfrom (SELECTdate_trunc('day',block_time) as day,token_pair,blockchain,sum(amount_usd) as eclp_volumeFROM gyroscope.tradeswhere date_trunc('day',block_time) >= current_date - interval '30' dayand (token_pair, blockchain) in (('stMATIC-WMATIC', 'polygon'),('MaticX-WMATIC', 'polygon'),('WETH-wstETH', 'ethereum'),('cbETH-wstETH', 'ethereum'),('swETH-wstETH', 'ethereum'),('R-sDAI', 'ethereum'),('WETH-wstETH', 'optimism'),('USDC-USDT','arbitrum') --,--('GYD-USDT', 'ethereum'),--('GYD-USDC', 'ethereum'),--('GYD-sDAI', 'ethereum'))and tx_to IN (0x11111112542d85b3ef69ae05771c2dccff4faa26, 0x1111111254fb6c44bac0bed2854e76f90643097d, 0x1111111254eeb25477b68fb85ed929f73a960582)OR tx_FROM IN (0x11111112542d85b3ef69ae05771c2dccff4faa26, 0x1111111254fb6c44bac0bed2854e76f90643097d, 0x1111111254eeb25477b68fb85ed929f73a960582)GROUP BY 1,2,3)group by 1,2),tt_oneinch as (selecttoken_pair,blockchain,sum(oneinch_volume) as oneinch_ttfrom (selectdate_trunc('day',block_time) as day,token_pair,blockchain,sum(amount_usd) as oneinch_volumefrom dex.tradeswhere date_trunc('day',block_time) >= current_date - interval '30' dayand (token_pair, blockchain) in (('stMATIC-WMATIC', 'polygon'),('MaticX-WMATIC', 'polygon'),('WETH-wstETH', 'ethereum'),('cbETH-wstETH', 'ethereum'),('swETH-wstETH', 'ethereum'),('R-sDAI', 'ethereum'),('WETH-wstETH', 'optimism')--,