Skip to content

Commit

Permalink
Fix empty position filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Meeseeks committed Mar 19, 2024
1 parent b5a016c commit 06bc291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/positions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 06bc291

Please sign in to comment.