File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
bittensor_cli/src/commands/stake Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments