revert: remover natural overshoot, manter split exato em 800

This commit is contained in:
rufinomec-afk
2026-06-07 23:33:59 -03:00
parent c74b411404
commit 6f8e64048a
+3 -3
View File
@@ -377,11 +377,11 @@ class Aggregator:
last_closed = self._close_active(close_reason)
break
# Split: how much fits before hitting the limit
# Split exactly at CLUSTER_DELTA_MAX
if is_buy:
capacity = settings.CLUSTER_DELTA_MAX - current_delta # always > 0 here
capacity = settings.CLUSTER_DELTA_MAX - current_delta
else:
capacity = current_delta + settings.CLUSTER_DELTA_MAX # always > 0 here
capacity = current_delta + settings.CLUSTER_DELTA_MAX
capacity = max(capacity, 0.0)