Skip to content

Commit e94a984

Browse files
committed
update unstaking
1 parent b816140 commit e94a984

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bittensor/core/extrinsics/asyncex/unstaking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ async def unstake_extrinsic(
124124
f"on [blue]{subtensor.network}[/blue][magenta]...[/magenta]"
125125
)
126126

127+
limit_price = Balance.from_tao(price_with_tolerance).rao
127128
call_params.update(
128129
{
129-
"limit_price": price_with_tolerance,
130+
"limit_price": limit_price,
130131
"allow_partial": allow_partial_stake,
131132
}
132133
)

bittensor/core/extrinsics/unstaking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ def unstake_extrinsic(
122122
f"on [blue]{subtensor.network}[/blue][magenta]...[/magenta]"
123123
)
124124

125+
limit_price = Balance.from_tao(price_with_tolerance).rao
125126
call_params.update(
126127
{
127-
"limit_price": price_with_tolerance,
128+
"limit_price": limit_price,
128129
"allow_partial": allow_partial_stake,
129130
}
130131
)

0 commit comments

Comments
 (0)