From 06bc291aa00230c021a3097624a545da86430129 Mon Sep 17 00:00:00 2001 From: "Douglas R. Colkitt" Date: Tue, 19 Mar 2024 13:09:00 -0400 Subject: [PATCH] Fix empty position filtering --- views/positions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/positions.go b/views/positions.go index 514f846..67fcdad 100644 --- a/views/positions.go +++ b/views/positions.go @@ -52,7 +52,7 @@ func (v *Views) QueryPoolPositions(chainId types.ChainId, if !hasSeen[val.Loc] { hasSeen[val.Loc] = true - if !omitEmpty || val.Pos.PositionLiquidity.IsEmpty() { + if !omitEmpty || !val.Pos.PositionLiquidity.IsEmpty() { element := UserPosition{PositionLocation: val.Loc, PositionTracker: *val.Pos, APRCalcResult: val.Pos.CalcAPR(val.Loc), PositionId: formPositionId(val.Loc)} results = append(results, element)