Query editor
with pools as (select lbPair as pair, tokenX as coin, evt_block_time as created, binStep as bsfrom meteora_solana.lb_clmm_evt_lbpaircreatewhere evt_block_time >= timestamp '2026-11-29 10:00:00' and evt_block_time < timestamp '2026-11-29 12:00:00'and tokenY = 'So11111111111111111111111111111111111111112' and tokenX like '%pump'),pc as (select c.position, c.owner, c.lbPair as pair, p.coin, c.evt_block_time as t_open, p.created, p.bsfrom meteora_solana.lb_clmm_evt_positioncreate c join pools p on p.pair = c.lbPairwhere c.evt_block_time >= timestamp '2026-11-29 10:00:00' and c.evt_block_time < timestamp '2026-11-29 12:00:00' + interval '1' hourand c.evt_block_time < p.created + interval '24' hour),adds as (select a.position, sum(cast(a.amounts[1] as double)) ax, sum(cast(a.amounts[2] as double)) ay,min_by(a.activeBinId, a.evt_block_time) ab0, count(*) nafrom meteora_solana.lb_clmm_evt_addliquidity a join pc on pc.position = a.positionwhere a.evt_block_time >= timestamp '2026-11-29 10:00:00' and a.evt_block_time < timestamp '2026-11-29 12:00:00' + interval '2' daygroup by 1),rems as (select r.position, sum(cast(r.amounts[2] as double)) ry,sum(cast(r.amounts[1] as double) * power(1 + pc.bs / 10000.0, r.activeBinId)) rxv,max_by(r.activeBinId, r.evt_block_time) ab1, count(*) nrfrom meteora_solana.lb_clmm_evt_removeliquidity r join pc on pc.position = r.positionwhere r.evt_block_time >= timestamp '2026-11-29 10:00:00' and r.evt_block_time < timestamp '2026-11-29 12:00:00' + interval '2' daygroup by 1),fees as (select f.position, sum(cast(f.feeY as double)) fy, sum(cast(f.feeX as double)) fxfrom meteora_solana.lb_clmm_evt_claimfee f join pc on pc.position = f.positionwhere f.evt_block_time >= timestamp '2026-11-29 10:00:00' and f.evt_block_time < timestamp '2026-11-29 12:00:00' + interval '2' daygroup by 1),rb_raw as (select to_base58(bytearray_substring(data, 17 + 32, 32)) position,from_big_endian_32(reverse(bytearray_substring(data, 17 + 96, 4))) ab,cast(from_big_endian_64(reverse(bytearray_substring(data, 17 + 100, 8))) as double) xw,cast(from_big_endian_64(reverse(bytearray_substring(data, 17 + 108, 8))) as double) xa,cast(from_big_endian_64(reverse(bytearray_substring(data, 17 + 116, 8))) as double) yw,cast(from_big_endian_64(reverse(bytearray_substring(data, 17 + 124, 8))) as double) ya,cast(from_big_endian_64(reverse(bytearray_substring(data, 17 + 132, 8))) as double) xf,cast(from_big_endian_64(reverse(bytearray_substring(data, 17 + 140, 8))) as double) yffrom solana.instruction_callswhere block_time >= timestamp '2026-11-29 10:00:00' and block_time < timestamp '2026-11-29 12:00:00' + interval '2' dayand executing_account = 'LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo'and bytearray_substring(data, 1, 16) = 0xe445a52e51cb9a1d006d75b33d5bc7c8),rb as (select rb_raw.position, count(*) nrb,sum(xa * power(1 + pc.bs / 10000.0, ab)) inxv, sum(ya) iny2,sum((xw + xf) * power(1 + pc.bs / 10000.0, ab)) outxv2, sum(yw + yf) outy2from rb_raw join pc on pc.position = rb_raw.positiongroup by 1),cl as (select x.position, min(x.evt_block_time) t_closefrom meteora_solana.lb_clmm_evt_positionclose x join pc on pc.position = x.positionwhere x.evt_block_time >= timestamp '2026-11-29 10:00:00' and x.evt_block_time < timestamp '2026-11-29 12:00:00' + interval '2' daygroup by 1)