File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
bittensor/core/extrinsics Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ async def add_stake_extrinsic(
122
122
pool = await subtensor .subnet (netuid = netuid )
123
123
base_price = pool .price .tao
124
124
125
- if pool .is_dynamic :
125
+ if pool .netuid == 0 :
126
126
price_with_tolerance = base_price * (1 + rate_tolerance )
127
127
else :
128
128
price_with_tolerance = base_price
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ async def unstake_extrinsic(
109
109
pool = await subtensor .subnet (netuid = netuid )
110
110
base_price = pool .price .tao
111
111
112
- if pool .is_dynamic :
112
+ if pool .netuid == 0 :
113
113
price_with_tolerance = base_price * (1 - rate_tolerance )
114
114
else :
115
115
price_with_tolerance = base_price
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def add_stake_extrinsic(
114
114
pool = subtensor .subnet (netuid = netuid )
115
115
base_price = pool .price .tao
116
116
117
- if pool .is_dynamic :
117
+ if pool .netuid == 0 :
118
118
price_with_tolerance = base_price * (1 + rate_tolerance )
119
119
else :
120
120
price_with_tolerance = base_price
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ def unstake_extrinsic(
107
107
pool = subtensor .subnet (netuid = netuid )
108
108
base_price = pool .price .tao
109
109
110
- if pool .is_dynamic :
110
+ if pool .netuid == 0 :
111
111
price_with_tolerance = base_price * (1 - rate_tolerance )
112
112
else :
113
113
price_with_tolerance = base_price
You can’t perform that action at this time.
0 commit comments