From 83c085640907bbdd741b736d498aea02577e0a22 Mon Sep 17 00:00:00 2001 From: David Cumps Date: Fri, 20 Sep 2024 20:39:32 +0200 Subject: [PATCH] fix: recalculate if we are at best --- chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs | 4 ---- chainflip-lp/Model/OrderManager/UpdateSellOrders.cs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs b/chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs index e25e5b9..36be474 100644 --- a/chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs +++ b/chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs @@ -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) diff --git a/chainflip-lp/Model/OrderManager/UpdateSellOrders.cs b/chainflip-lp/Model/OrderManager/UpdateSellOrders.cs index ede64d2..dcc2dd7 100644 --- a/chainflip-lp/Model/OrderManager/UpdateSellOrders.cs +++ b/chainflip-lp/Model/OrderManager/UpdateSellOrders.cs @@ -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)