Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GusevTimofey committed Aug 4, 2022
1 parent c8dd0bf commit c231fe6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ object AmmStats {
case (Nil, None) =>
points.lastOption
.flatMap(_.getPrev(new SimpleDateFormat(gap.javaDateFormat, LocaleRu)))
.map(_.copy(timestamp = currentTime))
case (x :: _, None) => x.copy(timestamp = currentTime) some
case (_, Some(p)) => AvgAssetAmounts(p.amountX, p.amountY, currentTime, 0).some
case _ => none
Expand Down

0 comments on commit c231fe6

Please sign in to comment.