From 0d223010930fc694ce85b66ff2d49638db003531 Mon Sep 17 00:00:00 2001 From: ashik08 Date: Wed, 19 Feb 2025 12:32:14 -0600 Subject: [PATCH] fix: remove double conversion in stake swap functionality [--swap_all] --- bittensor_cli/src/commands/stake/move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittensor_cli/src/commands/stake/move.py b/bittensor_cli/src/commands/stake/move.py index 3197d395e..964f0ed1b 100644 --- a/bittensor_cli/src/commands/stake/move.py +++ b/bittensor_cli/src/commands/stake/move.py @@ -905,7 +905,7 @@ async def swap_stake( ) if swap_all: - amount_to_swap = Balance.from_tao(current_stake).set_unit(origin_netuid) + amount_to_swap = current_stake.set_unit(origin_netuid) else: amount_to_swap = Balance.from_tao(amount).set_unit(origin_netuid)