From 011542d24acd07f1f83e5d76d17ecb33c6c70f9e Mon Sep 17 00:00:00 2001 From: garrett-opentensor Date: Wed, 25 Sep 2024 16:00:18 -0700 Subject: [PATCH 1/2] allow for take between 0 and 18% --- bittensor_cli/src/commands/root.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bittensor_cli/src/commands/root.py b/bittensor_cli/src/commands/root.py index f29ce5e6e..ca1ff0f7b 100644 --- a/bittensor_cli/src/commands/root.py +++ b/bittensor_cli/src/commands/root.py @@ -1270,8 +1270,8 @@ async def _do_set_take() -> bool: ) return False - if take > 0.18 or take < 0.08: - err_console.print("ERROR: Take value should not exceed 18% or be below 8%") + if take > 0.18 or take < 0: + err_console.print("ERROR: Take value should not exceed 18% or be below 0%") return False result: bool = await set_take_extrinsic( From 2cbd0ee95baae17d5c15597b9d868d4a67bf83d1 Mon Sep 17 00:00:00 2001 From: garrett-opentensor Date: Wed, 25 Sep 2024 16:04:46 -0700 Subject: [PATCH 2/2] allow for zero take in CLIManager --- bittensor_cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittensor_cli/cli.py b/bittensor_cli/cli.py index 2582da7d4..87cf54703 100755 --- a/bittensor_cli/cli.py +++ b/bittensor_cli/cli.py @@ -2571,7 +2571,7 @@ def root_set_take( [green]$[/green] btcli root set_take --wallet-name my_wallet --wallet-hotkey my_hotkey """ max_value = 0.18 - min_value = 0.08 + min_value = 0.00 self.verbosity_handler(quiet, verbose) if not take: