Skip to content

Commit

Permalink
- fix for minimumbalance
Browse files Browse the repository at this point in the history
  • Loading branch information
tsarbuig committed Jan 8, 2022
1 parent e0134e4 commit bba48d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LimitSwap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ def approve(address, amount):
if base_symbol == "ETH":
minimumbalance = 0.05
else:
minimumbalance = 0
minimumbalance = 0.01

if eth_balance > minimumbalance:
print("Estimating Gas Cost Using Web3")
Expand Down Expand Up @@ -2208,7 +2208,7 @@ def calculate_base_balance(token):
if base_symbol == "ETH":
minimumbalance = 0.05
else:
minimumbalance = 0
minimumbalance = 0.01

try:
eth_balance = Web3.fromWei(client.eth.getBalance(settings['WALLETADDRESS']), 'ether')
Expand Down

0 comments on commit bba48d5

Please sign in to comment.