fix: wrong debug output

This commit is contained in:
Derrick Hammer 2024-03-11 06:49:10 -04:00
parent e7caa50932
commit a4bb3eadaa
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ var _ cron.CronableService = (*PriceTracker)(nil)
const usdSymbol = "usd"
const blocksPerMonth = 30 * 144
const decimalsInSiacoin = 28
type PriceTracker struct {
config *config.Manager
@ -147,7 +148,7 @@ SELECT AVG(rate) as average_rate FROM (
maxRPCPrice = new(big.Rat).Quo(maxRPCPrice, new(big.Rat).SetUint64(1_000_000))
p.logger.Debug("Setting max RPC price", zap.String("maxRPCPrice", maxRPCPrice.FloatString(2)))
p.logger.Debug("Setting max RPC price", zap.String("maxRPCPrice", maxRPCPrice.FloatString(decimalsInSiacoin)))
gouge.MaxRPCPrice, err = siacoinsFromRat(maxRPCPrice)
if err != nil {