Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bittensor_cli/src/bittensor/subtensor_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion bittensor_cli/src/commands/wallets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
Loading