Skip to content

Commit e7c3e4c

Browse files
author
Roman
committed
update subtensor calls
1 parent 7a4a14a commit e7c3e4c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bittensor/core/async_subtensor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2350,8 +2350,9 @@ async def get_subnet_prices(
23502350
current_price = current_sqrt_price * current_sqrt_price
23512351
current_price_in_tao = Balance.from_rao(int(current_price * 1e9))
23522352
prices.update({id_: current_price_in_tao})
2353+
23532354
# SN0 price is always 1 TAO
2354-
prices[0] = Balance.from_tao(1)
2355+
prices.update({0: Balance.from_tao(1)})
23552356
return prices
23562357

23572358
async def get_unstake_fee(

bittensor/core/subtensor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,8 +1882,9 @@ def get_subnet_prices(
18821882
current_price = current_sqrt_price * current_sqrt_price
18831883
current_price_in_tao = Balance.from_rao(int(current_price * 1e9))
18841884
prices.update({id_: current_price_in_tao})
1885+
18851886
# SN0 price is always 1 TAO
1886-
prices[0] = Balance.from_tao(1)
1887+
prices.update({0: Balance.from_tao(1)})
18871888
return prices
18881889

18891890
def get_unstake_fee(

0 commit comments

Comments
 (0)