fix: wrong debug output
This commit is contained in:
parent
e7caa50932
commit
a4bb3eadaa
|
@ -26,6 +26,7 @@ var _ cron.CronableService = (*PriceTracker)(nil)
|
||||||
|
|
||||||
const usdSymbol = "usd"
|
const usdSymbol = "usd"
|
||||||
const blocksPerMonth = 30 * 144
|
const blocksPerMonth = 30 * 144
|
||||||
|
const decimalsInSiacoin = 28
|
||||||
|
|
||||||
type PriceTracker struct {
|
type PriceTracker struct {
|
||||||
config *config.Manager
|
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))
|
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)
|
gouge.MaxRPCPrice, err = siacoinsFromRat(maxRPCPrice)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue