Query editor
withfee_changes as (select a.* from balancer_v2_ethereum.pools_fees a),side_by_side_fee_changes as (select contract_address, block_number, block_time, index,lag(swap_fee_percentage) over (partition by contract_address order by ARRAY [block_number] || index)/1e18 as prev_fee,swap_fee_percentage/1e18 as fee,lead(swap_fee_percentage) over (partition by contract_address order by ARRAY [block_number] || index)/1e18 as next_fee,lag(tx_hash) over (partition by contract_address order by ARRAY [block_number] || index) as prev_fee_tx_hash,tx_hash as tx_hash,lead(tx_hash) over (partition by contract_address order by ARRAY [block_number] || index) as next_fee_tx_hashfrom fee_changes),classification as (selectCASEWHEN tx_hash = 0x85524b6e3dd8ddb445f683a8475e910c78dc5298fc73695a3f3d1ec861889dbc -- known false positiveTHEN 'OK'WHEN tx_hash IN (0x87ec5066bb28ea9597688d47ed88ce19706f4f105faf5738143d6bba9db76429, -- RAVEN BUG0x88c3bd0f2ccc114a129f502ca9f545c6d676c20252132bf2b452c5d7924dfb71, -- RAVEN BUG0x8c2472e854859c62b0a69214463d3141b4f9dd2ab33644d12104ef2b119dbb9d, -- RAVEN BUG0x9acb5a5064b2bb1b17e5ae4042cbe918ddff2716843a8b5d8f23994c0be3bc82 -- RAVEN BUG) THEN 'RAVEN BUG'WHEN tx_hash = next_fee_tx_hash and prev_fee <> next_feeTHEN 'BAD SOLVER'ELSE 'OK'END AS check,*from side_by_side_fee_changeswhere prev_fee is not nullorder by block_time desc, contract_address, block_number, index)select * from classificationwhere block_time > now() - interval '7' dayand check = 'BAD SOLVER'order by block_number desc, index desc