From 835f6800e9f42b115655a0e21a5a3920b13d8fa3 Mon Sep 17 00:00:00 2001 From: Samsonov Date: Tue, 25 Feb 2020 10:02:06 +0300 Subject: [PATCH] add MaximumAllowedGrowth #638 --- Pools/MRR.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pools/MRR.ps1 b/Pools/MRR.ps1 index a1563c42..e676836b 100644 --- a/Pools/MRR.ps1 +++ b/Pools/MRR.ps1 @@ -421,8 +421,8 @@ try { elseif ($prft -lt $persprofit) { $persprofit *= 1.01 } - elseif ($prft -gt ($persprofit * 10)) { - $persprofit *= 9.99 + elseif ($prft -gt ($persprofit * $Config.MaximumAllowedGrowth)) { + $persprofit *= $Config.MaximumAllowedGrowth } else { $persprofit = 0