Skip to content

Commit e8f4358

Browse files
committed
Updates stake move table with rate applied correctly.
1 parent 312a25c commit e8f4358

File tree

1 file changed

+2
-4
lines changed
  • bittensor_cli/src/commands/stake

1 file changed

+2
-4
lines changed

bittensor_cli/src/commands/stake/move.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ async def display_stake_movement_cross_subnets(
3838

3939
if origin_netuid == destination_netuid:
4040
subnet = await subtensor.subnet(origin_netuid)
41-
received_amount_tao = subnet.alpha_to_tao(amount_to_move)
42-
received_amount_tao -= stake_fee
41+
received_amount_tao = subnet.alpha_to_tao(amount_to_move - stake_fee)
4342

4443
if received_amount_tao < Balance.from_tao(0):
4544
print_error("Not enough Alpha to pay the transaction fee.")
@@ -60,8 +59,7 @@ async def display_stake_movement_cross_subnets(
6059
price_destination = dynamic_destination.price.tao
6160
rate = price_origin / (price_destination or 1)
6261

63-
received_amount_tao = dynamic_origin.alpha_to_tao(amount_to_move)
64-
received_amount_tao -= stake_fee
62+
received_amount_tao = dynamic_origin.alpha_to_tao(amount_to_move - stake_fee)
6563
received_amount = dynamic_destination.tao_to_alpha(received_amount_tao)
6664
received_amount.set_unit(destination_netuid)
6765

0 commit comments

Comments
 (0)