Skip to content

Commit 8b33b5d

Browse files
authored
Merge pull request opentensor#703 from opentensor/fix/metagraph-sn-symbol
Update metagraph symbols thru subnet info
2 parents 1e6fa00 + 0cf6573 commit 8b33b5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bittensor_cli/src/commands/subnets/subnets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ async def show_subnet(
13771377
# Add columns to the table
13781378
table.add_column("UID", style="grey89", no_wrap=True, justify="center")
13791379
table.add_column(
1380-
f"Stake ({Balance.get_unit(netuid_)})",
1380+
f"Stake ({subnet_info.symbol})",
13811381
style=COLOR_PALETTE["POOLS"]["ALPHA_IN"],
13821382
no_wrap=True,
13831383
justify="right",
@@ -1386,7 +1386,7 @@ async def show_subnet(
13861386
else f"{millify_tao(stake_sum)} {subnet_info.symbol}",
13871387
)
13881388
table.add_column(
1389-
f"Alpha ({Balance.get_unit(netuid_)})",
1389+
f"Alpha ({subnet_info.symbol})",
13901390
style=COLOR_PALETTE["POOLS"]["EXTRA_2"],
13911391
no_wrap=True,
13921392
justify="right",
@@ -1412,11 +1412,11 @@ async def show_subnet(
14121412
)
14131413
table.add_column("Incentive", style="#5fd7ff", no_wrap=True, justify="center")
14141414
table.add_column(
1415-
f"Emissions ({Balance.get_unit(netuid_)})",
1415+
f"Emissions ({subnet_info.symbol})",
14161416
style=COLOR_PALETTE["POOLS"]["EMISSION"],
14171417
no_wrap=True,
14181418
justify="center",
1419-
footer=str(Balance.from_tao(emission_sum).set_unit(subnet_info.netuid)),
1419+
footer=f"{emission_sum:.4f} {subnet_info.symbol}",
14201420
)
14211421
table.add_column(
14221422
"Hotkey",

0 commit comments

Comments
 (0)