From 6fc2ac9b93e9125ae3815b05ba696aa753168cb8 Mon Sep 17 00:00:00 2001 From: empresa Date: Tue, 9 Sep 2025 18:33:23 +0700 Subject: [PATCH] Wallet config debugging. --- clore_onboarding.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clore_onboarding.py b/clore_onboarding.py index 9575350..2d21ca2 100644 --- a/clore_onboarding.py +++ b/clore_onboarding.py @@ -89,7 +89,7 @@ def validate_clore_config(clore_config): 1 <= value["on_demand_multiplier"] <= 50 and 1 <= value["spot_multiplier"] <= 50 def is_valid_mrl(value): - return isinstance(value, int) and 6 <= value <= 1440 + return isinstance(value, int) and 6 <= value <= 3000 def is_valid_keep_params(value): return isinstance(value, bool) @@ -98,9 +98,9 @@ def validate_clore_config(clore_config): required_keys = {"on_demand_bitcoin", "on_demand_clore", "spot_bitcoin", "spot_clore"} if required_keys.issubset(clore_config): return 0.000001 <= clore_config["on_demand_bitcoin"] <= 0.005 and \ - 0.1 <= clore_config["on_demand_clore"] <= 5000 and \ + 0.1 <= clore_config["on_demand_clore"] <= 10000 and \ 0.000001 <= clore_config["spot_bitcoin"] <= 0.005 and \ - 0.1 <= clore_config["spot_clore"] <= 5000 + 0.1 <= clore_config["spot_clore"] <= 10000 return False def is_valid_usd_pricing(autoprice): @@ -126,7 +126,7 @@ def validate_clore_config(clore_config): errors.append("multipliers are not following spec") if "mrl" not in clore_config or not is_valid_mrl(clore_config["mrl"]): - errors.append("mrl is mandatory and must be an integer in range 6-1440") + errors.append("mrl is mandatory and must be an integer in range 6-3000") if "keep_params" in clore_config and not is_valid_keep_params(clore_config["keep_params"]): errors.append("keep_params must be a boolean value")