Skip to content

Commit

Permalink
improve condition for placeSellOpsFirst in mirror strategy
Browse files Browse the repository at this point in the history
related to change in 5046b0f (stellar-deprecated#528)
  • Loading branch information
nikhilsaraf committed Oct 25, 2020
1 parent 4be693d commit 94a30d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/mirrorStrategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func (s *mirrorStrategy) UpdateWithOps(
}
log.Printf("num. sellOps in this update: %d\n", len(sellOps))

placeSellOpsFirst := len(ob.Bids()) > 0 && len(sellingAOffers) > 0 && ob.Bids()[0].Price.AsFloat() >= utils.PriceAsFloat(sellingAOffers[0].Price)
placeSellOpsFirst := len(bids) > 0 && len(sellingAOffers) > 0 && bids[0].Price.AsFloat() >= utils.PriceAsFloat(sellingAOffers[0].Price)
if debugLogOffersOrders {
if placeSellOpsFirst {
log.Printf("---> passed placeSellOpsFirst condition where top bid (bids[0]) > first open ask offer (sellingAOffers[0]), placing sellOps first\n")
Expand Down

0 comments on commit 94a30d6

Please sign in to comment.