We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a55e122 commit cae1f00Copy full SHA for cae1f00
src/services/Scanner.ts
@@ -227,6 +227,9 @@ export class Scanner {
227
this.log.warn(
228
`found ${zeroHFAccs.length} accounts with HF=0 on first attempt, retrying`,
229
);
230
+ if (this.config.optimistic) {
231
+ return accounts;
232
+ }
233
accounts = await this.caService.getCreditAccounts(queue, blockNumber);
234
zeroHFAccs = accounts.filter(ca => ca.healthFactor === 0n);
235
0 commit comments