diff --git a/packages/crons/src/end-epoch.ts b/packages/crons/src/end-epoch.ts index e52d2c535..d092b7125 100644 --- a/packages/crons/src/end-epoch.ts +++ b/packages/crons/src/end-epoch.ts @@ -64,7 +64,8 @@ const MAX_CLAIM_AMOUNT = new BN("207020547945205"); let targetTs = subDaos.reduce( (acc, subDao) => BN.min(acc, subDao.account.vehntLastCalculatedTs), - new BN(unixNow) + // Start one day back to ensure we at least close the epoch that the job is running in. + new BN(unixNow - 24 * 60 * 60) ); mainLoop: while (targetTs.toNumber() < unixNow) {