File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
bittensor/core/extrinsics Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ async def add_stake_extrinsic(
123
123
base_price = pool .price .tao
124
124
125
125
if pool .netuid == 0 :
126
- price_with_tolerance = base_price * (1 + rate_tolerance )
127
- else :
128
126
price_with_tolerance = base_price
127
+ else :
128
+ price_with_tolerance = base_price * (1 + rate_tolerance )
129
129
130
130
logging .info (
131
131
f":satellite: [magenta]Safe Staking to:[/magenta] "
Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ async def unstake_extrinsic(
110
110
base_price = pool .price .tao
111
111
112
112
if pool .netuid == 0 :
113
- price_with_tolerance = base_price * (1 - rate_tolerance )
114
- else :
115
113
price_with_tolerance = base_price
114
+ else :
115
+ price_with_tolerance = base_price * (1 - rate_tolerance )
116
116
117
117
logging .info (
118
118
f":satellite: [magenta]Safe Unstaking from:[/magenta] "
Original file line number Diff line number Diff line change @@ -115,9 +115,9 @@ def add_stake_extrinsic(
115
115
base_price = pool .price .tao
116
116
117
117
if pool .netuid == 0 :
118
- price_with_tolerance = base_price * (1 + rate_tolerance )
119
- else :
120
118
price_with_tolerance = base_price
119
+ else :
120
+ price_with_tolerance = base_price * (1 + rate_tolerance )
121
121
122
122
logging .info (
123
123
f":satellite: [magenta]Safe Staking to:[/magenta] "
Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ def unstake_extrinsic(
108
108
base_price = pool .price .tao
109
109
110
110
if pool .netuid == 0 :
111
- price_with_tolerance = base_price * (1 - rate_tolerance )
112
- else :
113
111
price_with_tolerance = base_price
112
+ else :
113
+ price_with_tolerance = base_price * (1 - rate_tolerance )
114
114
115
115
logging .info (
116
116
f":satellite: [magenta]Safe Unstaking from:[/magenta] "
You can’t perform that action at this time.
0 commit comments