fix balance check
This commit is contained in:
parent
ce2bb22929
commit
d2150cf142
1 changed files with 1 additions and 1 deletions
|
@ -439,7 +439,7 @@ class StreamManager:
|
||||||
raise KeyFeeAboveMaxAllowed(msg)
|
raise KeyFeeAboveMaxAllowed(msg)
|
||||||
else:
|
else:
|
||||||
balance = await self.wallet.default_account.get_balance()
|
balance = await self.wallet.default_account.get_balance()
|
||||||
if fee_amount > balance:
|
if lbc_to_dewies(str(fee_amount)) > balance:
|
||||||
msg = f"fee of {fee_amount} exceeds max available balance"
|
msg = f"fee of {fee_amount} exceeds max available balance"
|
||||||
log.warning(msg)
|
log.warning(msg)
|
||||||
raise InsufficientFundsError(msg)
|
raise InsufficientFundsError(msg)
|
||||||
|
|
Loading…
Reference in a new issue