Query editor
WITH contract_names AS (SELECT'reth' AS name,0xae78736cd615f374d3085123a210448e74fc6393 AS contract_addressUNION ALLSELECT'steth' as name,0xae7ab96520de3a18e5e111b5eaab095312d7fe84UNION ALLSELECT'cbeth' as name,0xbe9895146f7af43049ca1c1ae358b0541ea49704UNION ALLSELECT'oseth' as name,0xda31D0d1Bc934fC34F7189E38A413ca0A5e8b44FUNION ALLSELECT'DOVA' as name,0xf1c9acdc66974dfb6decb12aa385b9cd01190e38UNION ALLSELECT'sweth' as name,0xf951e335afb289353dc249e82926178eac7ded78UNION ALLSELECT'oeth' as name,0x856c4Efb76C1D1AE02e20CEB03A2A6a08b0b8dC3UNION ALLSELECT'wbeth' as name,0xa2e3356610840701bdf5611a53974510ae27e2e1UNION ALLSELECT'ankreth' as name,0xE95A203B1a91a908F9B9CE46459d101078c2c3cbUNION ALLSELECT'ethx' as name,0xA35b1B31Ce002FBF2058D22F30f95D405200A15bUNION ALLSELECT'lseth' as name,0x8c1BEd5b9a0928467c9B1341Da1D7BD5e10b6549UNION ALLSELECT'meth' as name,0xd5F7838F5C461fefF7FE49ea5ebaF7728bB0ADfaUNION ALLSELECT'sfrxeth' as name,0xac3E018457B222d93114458476f3E3416Abbe38F),ranked_trades AS (SELECTtoken_bought_address AS contract_address,amount_usd*1e18 / token_bought_amount_raw AS price,ROW_NUMBER() OVER (PARTITION BY token_bought_address ORDER BY block_time DESC) AS rnk