From 38c192405708e05c80c0681becc2ec052d5750b7 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Thu, 30 Oct 2025 10:36:08 +0000 Subject: [PATCH] round precise fee recommendations to 3.d.p --- backend/src/api/fee-api.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/api/fee-api.ts b/backend/src/api/fee-api.ts index 489f6a067..2a1a26efe 100644 --- a/backend/src/api/fee-api.ts +++ b/backend/src/api/fee-api.ts @@ -68,11 +68,11 @@ class FeeApi { hourFee = Math.max(hourFee, economyFee); return { - 'fastestFee': fastestFee, - 'halfHourFee': halfHourFee, - 'hourFee': hourFee, - 'economyFee': economyFee, - 'minimumFee': minimumFee, + 'fastestFee': this.roundToNearest(fastestFee, minIncrement), + 'halfHourFee': this.roundToNearest(halfHourFee, minIncrement), + 'hourFee': this.roundToNearest(hourFee, minIncrement), + 'economyFee': this.roundToNearest(economyFee, minIncrement), + 'minimumFee': this.roundToNearest(minimumFee, minIncrement), }; }