Skip to content

Commit

Permalink
fix: recalculate if we are at best
Browse files Browse the repository at this point in the history
  • Loading branch information
CumpsD committed Sep 20, 2024
1 parent 57fff0a commit 83c0856
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ private async Task UpdateBuyOrders(
var ourTick = ourOrder.Tick;
var otherTick = otherOrders.Max(x => x.Tick);

// Can't make it any better
if (ourTick == ourOrders.MaxBuyTick)
return;

var newTick = otherTick + 1;

if (newTick > ourOrders.MaxSellTick)
Expand Down
4 changes: 0 additions & 4 deletions chainflip-lp/Model/OrderManager/UpdateSellOrders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ private async Task UpdateSellOrders(
var ourTick = ourOrder.Tick;
var otherTick = otherOrders.Min(x => x.Tick);

// Can't make it any better
if (ourTick == ourOrders.MaxSellTick)
return;

var newTick = otherTick - 1;

if (newTick < ourOrders.MaxSellTick)
Expand Down

0 comments on commit 83c0856

Please sign in to comment.