Skip to content

Commit

Permalink
make start inclussive keep end exclussive (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
uv-orbs authored Mar 27, 2024
1 parent 2522dbc commit 88742cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/get_orders_for_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (s *Service) GetSwapFills(ctx context.Context, userId uuid.UUID, symbol mod
return nil, err
}
// check if swap is in time range
if swap.Resolved.After(startAt) && swap.Resolved.Before(endAt) {
if (swap.Resolved.Equal(startAt) || swap.Resolved.After(startAt)) && swap.Resolved.Before(endAt) {
// iterate through fragments
for _, frag := range swap.Frags {
order, err := s.orderBookStore.FindOrderById(ctx, frag.OrderId, false)
Expand Down

0 comments on commit 88742cf

Please sign in to comment.