diff --git a/CHANGELOG.md b/CHANGELOG.md index 56ea625bc..27b5ca54b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 9.11.2 /2025-09-19 +* Fix: Stake movement between non-root sns by @ibraheem-abe in https://github.com/opentensor/btcli/pull/629 + +**Full Changelog**: https://github.com/opentensor/btcli/compare/v9.11.1...v9.11.2 + ## 9.11.1 /2025-09-16 * Transfer not staking warning by @thewhaleking in https://github.com/opentensor/btcli/pull/618 diff --git a/bittensor_cli/src/__init__.py b/bittensor_cli/src/__init__.py index ba96fe488..f93aed504 100644 --- a/bittensor_cli/src/__init__.py +++ b/bittensor_cli/src/__init__.py @@ -663,7 +663,7 @@ class WalletValidationTypes(Enum): ), "yuma3_enabled": ("sudo_set_yuma3_enabled", False), "alpha_sigmoid_steepness": ("sudo_set_alpha_sigmoid_steepness", True), - "user_liquidity_enabled": ("toggle_user_liquidity", False), + "user_liquidity_enabled": ("toggle_user_liquidity", True), "bonds_reset_enabled": ("sudo_set_bonds_reset_enabled", False), "transfers_enabled": ("sudo_set_toggle_transfer", False), } diff --git a/bittensor_cli/src/bittensor/subtensor_interface.py b/bittensor_cli/src/bittensor/subtensor_interface.py index cafef0439..27df7d94c 100644 --- a/bittensor_cli/src/bittensor/subtensor_interface.py +++ b/bittensor_cli/src/bittensor/subtensor_interface.py @@ -1462,7 +1462,7 @@ async def subnet( if not result: raise ValueError(f"Subnet {netuid} not found") subnet_ = DynamicInfo.from_any(result) - subnet_.price = price + subnet_.price = price if netuid != 0 else Balance.from_tao(1.0) return subnet_ async def get_owned_hotkeys( @@ -1545,13 +1545,13 @@ async def sim_swap( "sim_swap_tao_for_alpha", params={ "netuid": destination_netuid, - "tao": intermediate_result.tao_amount, + "tao": intermediate_result.tao_amount.rao, }, block_hash=block_hash, ), destination_netuid, ) - secondary_fee = (result.tao_fee * sn_price).set_unit(origin_netuid) + secondary_fee = (result.tao_fee / sn_price.tao).set_unit(origin_netuid) result.alpha_fee = result.alpha_fee + secondary_fee return result elif origin_netuid > 0: diff --git a/bittensor_cli/src/commands/wallets.py b/bittensor_cli/src/commands/wallets.py index 1112d195d..3b13a7fca 100644 --- a/bittensor_cli/src/commands/wallets.py +++ b/bittensor_cli/src/commands/wallets.py @@ -549,7 +549,7 @@ def _get_coldkey_ss58_addresses_for_path(path: str) -> tuple[list[str], list[str coldkey_paths = [ os.path.join(abs_path, wallet, "coldkeypub.txt") for wallet in wallets - if os.path.exists(os.path.join(abs_path, wallet, "coldkeypub.txt")) + if os.path.isfile(os.path.join(abs_path, wallet, "coldkeypub.txt")) ] ss58_addresses = [Keyfile(path).keypair.ss58_address for path in coldkey_paths] diff --git a/pyproject.toml b/pyproject.toml index 56814fe27..b7c11b579 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "bittensor-cli" -version = "9.11.1" +version = "9.11.2" description = "Bittensor CLI" readme = "README.md" authors = [