Skip to content

Commit

Permalink
Merge pull request #283 from vegaprotocol/fix_lp_mismatch
Browse files Browse the repository at this point in the history
fix: include pending LPs in datanode LP count
  • Loading branch information
ze97286 authored May 17, 2023
2 parents 2012326 + b9ea0df commit 0272bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion difftool/diff/datanode_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (dnc *dataNodeClient) listLiquidityProvisions(market string) ([]*vega.Liqui
}
lps := make([]*vega.LiquidityProvision, 0, len(resp.LiquidityProvisions.Edges))
for _, lpe := range resp.LiquidityProvisions.Edges {
if lpe.Node.Status == vega.LiquidityProvision_STATUS_ACTIVE || lpe.Node.Status == vega.LiquidityProvision_STATUS_UNDEPLOYED {
if lpe.Node.Status == vega.LiquidityProvision_STATUS_PENDING || lpe.Node.Status == vega.LiquidityProvision_STATUS_ACTIVE || lpe.Node.Status == vega.LiquidityProvision_STATUS_UNDEPLOYED {
lps = append(lps, lpe.Node)
}
}
Expand Down

0 comments on commit 0272bd2

Please sign in to comment.