Skip to content

Commit 822b550

Browse files
committed
feat: add min/maxHF into health status
1 parent 15c4bd9 commit 822b550

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/services/HealthCheckerService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ export default class HealthCheckerService {
9292
address: this.client.address,
9393
balance: this.client.balance,
9494
currentBlock: this.sdk.currentBlock,
95+
minHealthFactor: this.scanner.minHealthFactor,
96+
maxHealthFactor: this.scanner.maxHealthFactor,
9597
timestamp: {
9698
value: timestamp,
9799
status: (!!threshold && now - timestamp <= threshold

src/services/Scanner.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@ export class Scanner {
485485
return this.#liquidatableAccounts;
486486
}
487487

488+
public get minHealthFactor(): bigint {
489+
return this.#minHealthFactor;
490+
}
491+
492+
public get maxHealthFactor(): bigint {
493+
return this.#maxHealthFactor;
494+
}
495+
488496
public async stop(): Promise<void> {
489497
this.#unwatch?.();
490498
this.log.info("stopped");

0 commit comments

Comments
 (0)