Skip to content

Commit

Permalink
Allow for delegate take between 0 and 18% (#123)
Browse files Browse the repository at this point in the history
* allow for take between 0 and 18%

* allow for zero take in CLIManager
  • Loading branch information
garrett-opentensor authored Sep 25, 2024
1 parent 7213d17 commit 7c0daa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bittensor_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions bittensor_cli/src/commands/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7c0daa0

Please sign in to comment.