Skip to content

Commit d43b3dc

Browse files
committed
update staking
1 parent e94a984 commit d43b3dc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bittensor/core/extrinsics/asyncex/staking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ async def add_stake_extrinsic(
137137
f"on [blue]{subtensor.network}[/blue][/magenta]...[/magenta]"
138138
)
139139

140+
limit_price = Balance.from_tao(price_with_tolerance).rao
140141
call_params.update(
141142
{
142-
"limit_price": price_with_tolerance,
143+
"limit_price": limit_price,
143144
"allow_partial": allow_partial_stake,
144145
}
145146
)

bittensor/core/extrinsics/staking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ def add_stake_extrinsic(
129129
f"on [blue]{subtensor.network}[/blue][/magenta]...[/magenta]"
130130
)
131131

132+
limit_price = Balance.from_tao(price_with_tolerance).rao
132133
call_params.update(
133134
{
134-
"limit_price": price_with_tolerance,
135+
"limit_price": limit_price,
135136
"allow_partial": allow_partial_stake,
136137
}
137138
)

0 commit comments

Comments
 (0)