diff --git a/jupiter/src/main/java/com/mmorrell/jupiter/manager/JupiterManager.java b/jupiter/src/main/java/com/mmorrell/jupiter/manager/JupiterManager.java index 2340e23..1834d07 100644 --- a/jupiter/src/main/java/com/mmorrell/jupiter/manager/JupiterManager.java +++ b/jupiter/src/main/java/com/mmorrell/jupiter/manager/JupiterManager.java @@ -167,9 +167,8 @@ public List getDcaAccounts(PublicKey user) { } public List getActiveDcaOrders() { - long now = Instant.now().getEpochSecond(); return getDcaAccounts().stream() - .filter(dca -> dca.getNextCycleAt() > now && dca.getInUsed() < dca.getInDeposited()) + .filter(dca -> dca.getInUsed() <= dca.getInDeposited()) .collect(Collectors.toList()); }