def our_available_balance(self, token: ERC20Token) -> Wad:
     if token.symbol() == self.token_first.name:
         return self.token_first.normalize_amount(
             token.balance_of(self.our_address))
     else:
         return self.token_second.normalize_amount(
             token.balance_of(self.our_address))
Exemple #2
0
 def our_available_balance(self, token: ERC20Token) -> Wad:
     if token.symbol() == self.buy_token.name:
         return self.buy_token.normalize_amount(
             token.balance_of(self.our_address))
     else:
         return self.sell_token.normalize_amount(
             token.balance_of(self.our_address))
Exemple #3
0
 def our_total_balance(self, token: ERC20Token) -> Wad:
     return token.balance_of(self.our_address)
Exemple #4
0
 def our_available_balance(self, token: ERC20Token) -> Wad:
     return token.balance_of(self.our_address)
 def our_total_balance(self, token: ERC20Token) -> Wad:
     return token.balance_of(self.our_address)
 def our_available_balance(self, token: ERC20Token) -> Wad:
     return token.balance_of(self.our_address)