From 01cd30b6f81bb41c8dcd8f723979029d82632e12 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 10 Mar 2024 14:38:59 -0400 Subject: [PATCH] fix: divide maxRPCPrice by 1 million --- renter/price_tracker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/renter/price_tracker.go b/renter/price_tracker.go index 32d8b75..1abed49 100644 --- a/renter/price_tracker.go +++ b/renter/price_tracker.go @@ -140,6 +140,7 @@ SELECT AVG(rate) as average_rate FROM ( } maxRPCPrice := p.config.Config().Core.Storage.Sia.MaxRPCSCPrice / averageRate + maxRPCPrice = maxRPCPrice / 1_000_000 p.logger.Debug("Setting max RPC price", zap.Float64("maxRPCPrice", maxRPCPrice))