Skip to content

Commit a94079b

Browse files
committed
Ensure that the fees are shown in alpha, not Tao.
1 parent c1cac5c commit a94079b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bittensor_cli/src/commands/stake/move.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async def display_stake_movement_cross_subnets(
124124
style=COLOR_PALETTE["POOLS"]["TAO_EQUIV"],
125125
)
126126
table.add_column(
127-
"Fee (τ)",
127+
f"Fee ({Balance.get_unit(origin_netuid)})",
128128
justify="center",
129129
style=COLOR_PALETTE["STAKE"]["STAKE_AMOUNT"],
130130
)
@@ -137,7 +137,7 @@ async def display_stake_movement_cross_subnets(
137137
str(amount_to_move),
138138
price_str,
139139
str(received_amount),
140-
str(stake_fee),
140+
str(stake_fee.set_unit(origin_netuid)),
141141
)
142142

143143
console.print(table)

bittensor_cli/src/commands/stake/remove.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ async def unstake(
234234
str(amount_to_unstake_as_balance), # Amount to Unstake
235235
f"{subnet_info.price.tao:.6f}"
236236
+ f"({Balance.get_unit(0)}/{Balance.get_unit(netuid)})", # Rate
237-
str(stake_fee), # Fee
237+
str(stake_fee.set_unit(netuid)), # Fee
238238
str(received_amount), # Received Amount
239239
# slippage_pct, # Slippage Percent
240240
]
@@ -1189,7 +1189,7 @@ def _create_unstake_table(
11891189
style=COLOR_PALETTE["POOLS"]["RATE"],
11901190
)
11911191
table.add_column(
1192-
f"Fee ({Balance.get_unit(0)})",
1192+
f"Fee ({Balance.get_unit(1)})",
11931193
justify="center",
11941194
style=COLOR_PALETTE["STAKE"]["STAKE_AMOUNT"],
11951195
)

0 commit comments

Comments
 (0)