Skip to content

Commit

Permalink
feat: only look at the range to adjust values, dont always pull to ex…
Browse files Browse the repository at this point in the history
…tremes of range
  • Loading branch information
CumpsD committed Nov 1, 2024
1 parent 80680ff commit 37c9904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions chainflip-lp/Model/OrderManager/UpdateBuyOrders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private async Task UpdateBuyOrders(
x.Asset == ourOrders.Asset)
.SelectMany(x => x.Buys)
.Where(x => x.LiquidityProvider != _configuration.LpAccount)
.Where(x => x.Tick <= ourOrders.MaxBuyTick)
.ToList();

var ourOrder = ourOrders.Buys.SingleOrDefault();
Expand Down
1 change: 1 addition & 0 deletions chainflip-lp/Model/OrderManager/UpdateSellOrders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private async Task UpdateSellOrders(
x.Asset == ourOrders.Asset)
.SelectMany(x => x.Sells)
.Where(x => x.LiquidityProvider != _configuration.LpAccount)
.Where(x => x.Tick >= ourOrders.MaxSellTick)
.ToList();

var ourOrder = ourOrders.Sells.SingleOrDefault();
Expand Down

0 comments on commit 37c9904

Please sign in to comment.