Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sladuca committed Sep 28, 2024
1 parent afc4d40 commit 992f3c6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/updown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 992f3c6

Please sign in to comment.