@@ -2831,14 +2831,14 @@ async def add_stake(
2831
2831
allow_partial_stake (bool): If true and safe_staking is enabled, allows partial staking when
2832
2832
the full amount would exceed the price threshold. If false, the entire stake fails if it would
2833
2833
exceed the threshold. Default is False.
2834
- rate_threshold (float): The maximum allowed price change ratio when staking. For example,
2834
+ rate_threshold (float): The maximum allowed price change ratio when staking. For example,
2835
2835
0.005 = 0.5% maximum price increase. Only used when safe_staking is True. Default is 0.005.
2836
2836
2837
2837
Returns:
2838
2838
bool: ``True`` if the staking is successful, False otherwise.
2839
2839
2840
- This function enables neurons to increase their stake in the network, enhancing their influence and potential
2841
- rWhen safe_staking is enabled, it provides protection against price fluctuations during the time stake is
2840
+ This function enables neurons to increase their stake in the network, enhancing their influence and potential.
2841
+ When safe_staking is enabled, it provides protection against price fluctuations during the time stake is
2842
2842
executed and the time it is actually processed by the chain.
2843
2843
"""
2844
2844
amount = check_and_convert_to_balance (amount )
@@ -3632,7 +3632,7 @@ async def unstake(
3632
3632
allow_partial_stake (bool): If true and safe_staking is enabled, allows partial unstaking when
3633
3633
the full amount would exceed the price threshold. If false, the entire unstake fails if it would
3634
3634
exceed the threshold. Default is False.
3635
- rate_threshold (float): The maximum allowed price change ratio when unstaking. For example,
3635
+ rate_threshold (float): The maximum allowed price change ratio when unstaking. For example,
3636
3636
0.005 = 0.5% maximum price decrease. Only used when safe_staking is True. Default is 0.005.
3637
3637
3638
3638
Returns:
0 commit comments