Skip to content

Commit

Permalink
fix: respect max buy tick
Browse files Browse the repository at this point in the history
  • Loading branch information
CumpsD committed Sep 27, 2024
1 parent ed5a955 commit e9abe29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e9abe29

Please sign in to comment.