Skip to content

Commit 66389e6

Browse files
committed
Correct received amount calculation in remove all
1 parent efddf08 commit 66389e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bittensor_cli/src/commands/stake/remove.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ async def unstake_all(
468468
try:
469469
current_price = subnet_info.price.tao
470470
rate = current_price
471-
received_amount = stake_amount * rate - stake_fee
471+
received_amount = (stake_amount - stake_fee) * rate
472472

473473
if received_amount < Balance.from_tao(0):
474474
print_error("Not enough Alpha to pay the transaction fee.")

0 commit comments

Comments
 (0)