diff --git a/service/src/main/kotlin/io/provenance/explorer/service/async/AsyncService.kt b/service/src/main/kotlin/io/provenance/explorer/service/async/AsyncService.kt index 62d20925..d36cd199 100644 --- a/service/src/main/kotlin/io/provenance/explorer/service/async/AsyncService.kt +++ b/service/src/main/kotlin/io/provenance/explorer/service/async/AsyncService.kt @@ -298,8 +298,9 @@ class AsyncService( if (latest != null) { startDate = latest.timestamp.minusDays(1) } - val dlobRes = tokenService.getHistoricalFromDlob(startDate) ?: return + logger.info("Updating token historical data starting from $startDate with ${dlobRes.buy.size} buy record for roll-up.") + val baseMap = Interval(startDate, today) .let { int -> generateSequence(int.start) { dt -> dt.plusDays(1) }.takeWhile { dt -> dt < int.end } } .map { it to emptyList() }.toMap().toMutableMap()