From 992f3c611890323c7945d25d010f07e397f166e6 Mon Sep 17 00:00:00 2001 From: Sladuca Date: Fri, 27 Sep 2024 17:17:46 -0700 Subject: [PATCH] check --- src/lib/updown.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/updown.ts b/src/lib/updown.ts index b4d72e6..6351441 100644 --- a/src/lib/updown.ts +++ b/src/lib/updown.ts @@ -4,7 +4,11 @@ import type { Command } from "commander"; import parseDuration from "parse-duration"; import { apiClient } from "../apiClient"; import { logAndQuit } from "../helpers/errors"; -import { type Cents, centsToDollarsFormatted, dollarsToCents } from "../helpers/units"; +import { + type Cents, + centsToDollarsFormatted, + dollarsToCents, +} from "../helpers/units"; import { getBalance } from "./balance"; import { getQuote } from "./buy"; import { formatDuration } from "./orders"; @@ -80,7 +84,7 @@ async function getDefaultProcurementOptions(props: { const pricePerNodeHourInCents = props.pricePerNodeHourDollars ? dollarsToCents(Number.parseFloat(props.pricePerNodeHourDollars)) - : quotePrice + : quotePrice; const totalPriceInCents = pricePerNodeHourInCents * Number.parseInt(props.n ?? "1") * durationHours;