From e9abe29e2dd07f928e3dd08eb61b06c89df8f705 Mon Sep 17 00:00:00 2001 From: David Cumps Date: Fri, 27 Sep 2024 22:26:50 +0200 Subject: [PATCH] fix: respect max buy tick --- chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs b/chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs index d891fd5..adad8ba 100644 --- a/chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs +++ b/chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs @@ -61,8 +61,8 @@ private async Task UpdateBuyOrders( var newTick = otherTick + 1; - if (newTick > ourOrders.MaxSellTick) - newTick = ourOrders.MaxSellTick; + if (newTick > ourOrders.MaxBuyTick) + newTick = ourOrders.MaxBuyTick; if (newTick < ourOrders.MinBuyTick) newTick = ourOrders.MinBuyTick;