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]