fix: don't compute by usd the contract price

This commit is contained in:
Derrick Hammer 2024-03-14 07:20:11 -04:00
parent 7d87ed6ad7
commit 37708c91f2
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
}
maxContractPrice, err := computeByRate(p.config.Config().Core.Storage.Sia.MaxContractSCPrice, averageRate, "max contract price")
maxContractPrice, err := newRat(p.config.Config().Core.Storage.Sia.MaxContractSCPrice, "max contract price")
if err != nil {
return err
}