Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/lib/buy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ function QuoteAndBuy(props: { options: SfBuyOptions }) {
}

pricePerGpuHour = getPricePerGpuHourFromQuote(quote);
// Add 1 cent to price to make order more likely to fill
pricePerGpuHour += 1;
Comment on lines 197 to +199
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Adding 1 cent to pricePerGpuHour could cause precision issues since JavaScript numbers may not handle decimal arithmetic perfectly. Consider using a decimal library or moving the addition after converting to total price.


startAt = parseStartDateOrNow(quote.start_at);

Expand Down
Loading