Prechádzať zdrojové kódy

写错了,淦……

skyffire 8 mesiacov pred
rodič
commit
0bf1cc583c
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      strategy/src/predictor.rs

+ 1 - 1
strategy/src/predictor.rs

@@ -392,7 +392,7 @@ impl Predictor {
             self.fair_price = if self.fair_price.is_zero() {
                 fair_price_sum / Decimal::from(fair_price_count)
             } else {
-                dec!(0.99) + self.fair_price + dec!(0.01) * fair_price_sum / Decimal::from(fair_price_count)
+                dec!(0.99) * self.fair_price + dec!(0.01) * fair_price_sum / Decimal::from(fair_price_count)
             };
 
             self.fair_price_short_vec.push_back(self.fair_price);