|
|
@@ -265,7 +265,7 @@ impl Predictor {
|
|
|
pub async fn on_balance(&mut self, balance: Decimal) {
|
|
|
self.balance = balance;
|
|
|
if self.inventory.is_zero() {
|
|
|
- self.one_grid_order_value = self.balance / self.params.grid;
|
|
|
+ self.one_grid_order_value = (self.params.lever_rate * self.balance) / self.params.grid;
|
|
|
}
|
|
|
}
|
|
|
|