Explorar el Código

写错了,淦……

skyffire hace 8 meses
padre
commit
0bf1cc583c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);