Skip to content

Commit af57ae6

Browse files
committed
fix: zod schema
1 parent 457f175 commit af57ae6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config/deleverage-liquidator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { zommandRegistry } from "@gearbox-protocol/cli-utils";
1+
import { boolLike, zommandRegistry } from "@gearbox-protocol/cli-utils";
22
import { z } from "zod/v4";
33
import { CommonSchema } from "./common.js";
44

@@ -18,7 +18,7 @@ export const DeleverageLiquidatorSchema = z.object({
1818
*
1919
* This mode can be used to test that deleverage bot is able to detect accounts correctly
2020
*/
21-
useProductionScanner: z.boolean().default(false).register(zommandRegistry, {
21+
useProductionScanner: boolLike().optional().register(zommandRegistry, {
2222
flags: "--use-production-scanner",
2323
description:
2424
"In optimistic mode, use real health factor range to scan for accounts and do not force-enable deleverage bot on accounts",

0 commit comments

Comments
 (0)