Skip to content

Commit

Permalink
Names
Browse files Browse the repository at this point in the history
  • Loading branch information
thewhaleking committed Oct 2, 2024
1 parent 5b04302 commit 9602780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bittensor_cli/src/bittensor/chain_data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass
from typing import Optional
from typing import Optional, Any, Union

import bt_decode
import netaddr
Expand Down Expand Up @@ -852,7 +852,7 @@ def tao_to_alpha(self, tao: Balance) -> Balance:
def alpha_to_tao(self, alpha: Balance) -> Balance:
return Balance.from_tao(alpha.tao * self.price.tao)

def tao_to_alpha_with_slippage(self, tao: Balance) -> Tuple[Balance, Balance]:
def tao_to_alpha_with_slippage(self, tao: Balance) -> tuple[Balance, Balance]:
"""
Returns an estimate of how much Alpha would a staker receive if they stake their tao
using the current pool state
Expand Down Expand Up @@ -888,7 +888,7 @@ def tao_to_alpha_with_slippage(self, tao: Balance) -> Tuple[Balance, Balance]:
slippage = Balance.from_tao(0)
return alpha_returned, slippage

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

0 comments on commit 9602780

Please sign in to comment.