Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bittensor_cli/src/bittensor/chain_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def tao_to_alpha_with_slippage(
self, tao: Balance
) -> tuple[Balance, Balance, float]:
"""
Returns an estimate of how much Alpha would a staker receive if they stake their tao using the current pool
Returns an estimate of how much Alpha a staker would receive if they stake their tao using the current pool
state.

Args:
Expand Down Expand Up @@ -794,7 +794,7 @@ def alpha_to_tao_with_slippage(
self, alpha: Balance
) -> tuple[Balance, Balance, float]:
"""
Returns an estimate of how much TAO would a staker receive if they unstake their alpha using the current pool
Returns an estimate of how much TAO a staker would receive if they unstake their alpha using the current pool
state.

Args:
Expand Down
5 changes: 4 additions & 1 deletion bittensor_cli/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@


def version_as_int(version):
core_version = re.match(r"^\d+\.\d+\.\d+", version).group(0)
match = re.match(r"^\d+\.\d+\.\d+", version)
if not match:
raise ValueError(f"Invalid version format: {version}")
core_version = match.group(0)
version_split = core_version.split(".")
version_info = tuple(int(part) for part in version_split)
version_int_base = 1000
Expand Down
Loading