fix: don't compute maxRPCPrice based on usd rate

This commit is contained in:
Derrick Hammer 2024-03-10 14:42:00 -04:00
parent 01cd30b6f8
commit 9d17ae1065
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ SELECT AVG(rate) as average_rate FROM (
return err
}
maxRPCPrice := p.config.Config().Core.Storage.Sia.MaxRPCSCPrice / averageRate
maxRPCPrice := p.config.Config().Core.Storage.Sia.MaxRPCSCPrice
maxRPCPrice = maxRPCPrice / 1_000_000
p.logger.Debug("Setting max RPC price", zap.Float64("maxRPCPrice", maxRPCPrice))