File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -749,7 +749,7 @@ def tao_to_alpha_with_slippage(
749
749
self , tao : Balance
750
750
) -> tuple [Balance , Balance , float ]:
751
751
"""
752
- Returns an estimate of how much Alpha would a staker receive if they stake their tao using the current pool
752
+ Returns an estimate of how much Alpha a staker would receive if they stake their tao using the current pool
753
753
state.
754
754
755
755
Args:
@@ -794,7 +794,7 @@ def alpha_to_tao_with_slippage(
794
794
self , alpha : Balance
795
795
) -> tuple [Balance , Balance , float ]:
796
796
"""
797
- Returns an estimate of how much TAO would a staker receive if they unstake their alpha using the current pool
797
+ Returns an estimate of how much TAO a staker would receive if they unstake their alpha using the current pool
798
798
state.
799
799
800
800
Args:
Original file line number Diff line number Diff line change 3
3
4
4
5
5
def version_as_int (version ):
6
- core_version = re .match (r"^\d+\.\d+\.\d+" , version ).group (0 )
6
+ match = re .match (r"^\d+\.\d+\.\d+" , version )
7
+ if not match :
8
+ raise ValueError (f"Invalid version format: { version } " )
9
+ core_version = match .group (0 )
7
10
version_split = core_version .split ("." )
8
11
version_info = tuple (int (part ) for part in version_split )
9
12
version_int_base = 1000
You can’t perform that action at this time.
0 commit comments