Skip to content

Commit

Permalink
fix(LT-5061): canRetryPriceRequest has to be true when price was reje…
Browse files Browse the repository at this point in the history
…cted by trader
  • Loading branch information
atarutin committed Mar 15, 2024
1 parent 88def08 commit 5a402af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ public class FailSpecialLiquidationInternalCommand

[Key(2)]
public string Reason { get; set; }

[Key(3)]
public bool? CanRetryPriceRequest { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ private async Task Handle(FailSpecialLiquidationInternalCommand command, IEventP
OperationId = command.OperationId,
CreationTime = _dateService.Now(),
Reason = command.Reason,
CanRetryPriceRequest = command.CanRetryPriceRequest ?? false
});

_chaosKitty.Meow(command.OperationId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ private async Task Handle(PriceForSpecialLiquidationCalculationFailedEvent e, IC
{
OperationId = e.OperationId,
CreationTime = _dateService.Now(),
Reason = e.Reason
Reason = e.Reason,
CanRetryPriceRequest = true
}, _cqrsContextNamesSettings.TradingEngine);

_chaosKitty.Meow(e.OperationId);
Expand Down

0 comments on commit 5a402af

Please sign in to comment.