Skip to content

Commit bc99690

Browse files
committed
update var name
1 parent d43b3dc commit bc99690

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bittensor/core/extrinsics/asyncex/staking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def add_stake_extrinsic(
122122
pool = await subtensor.subnet(netuid=netuid)
123123
base_price = pool.price.tao
124124

125-
if pool.is_dynamic:
125+
if pool.netuid == 0:
126126
price_with_tolerance = base_price * (1 + rate_tolerance)
127127
else:
128128
price_with_tolerance = base_price

bittensor/core/extrinsics/asyncex/unstaking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async def unstake_extrinsic(
109109
pool = await subtensor.subnet(netuid=netuid)
110110
base_price = pool.price.tao
111111

112-
if pool.is_dynamic:
112+
if pool.netuid == 0:
113113
price_with_tolerance = base_price * (1 - rate_tolerance)
114114
else:
115115
price_with_tolerance = base_price

bittensor/core/extrinsics/staking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def add_stake_extrinsic(
114114
pool = subtensor.subnet(netuid=netuid)
115115
base_price = pool.price.tao
116116

117-
if pool.is_dynamic:
117+
if pool.netuid == 0:
118118
price_with_tolerance = base_price * (1 + rate_tolerance)
119119
else:
120120
price_with_tolerance = base_price

bittensor/core/extrinsics/unstaking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def unstake_extrinsic(
107107
pool = subtensor.subnet(netuid=netuid)
108108
base_price = pool.price.tao
109109

110-
if pool.is_dynamic:
110+
if pool.netuid == 0:
111111
price_with_tolerance = base_price * (1 - rate_tolerance)
112112
else:
113113
price_with_tolerance = base_price

0 commit comments

Comments
 (0)