Skip to content

Commit

Permalink
Merge pull request #16 from sethforprivacy/patch-5
Browse files Browse the repository at this point in the history
Add balance/min output to autoconvert and autoforward logs
  • Loading branch information
SamsungGalaxyPlayer authored Oct 16, 2024
2 parents 155d0ec + df78156 commit 5081da6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/autoconvert.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def attempt_sell(asset: Literal['XBT', 'XMR']):
to_sell_amount = 0

if balance < order_min[asset]:
print(util.get_time(), f'Not enough {asset} balance to sell.')
print(util.get_time(), f'Not enough {asset} balance to sell. (Balance: {balance}, Min order: {order_min[asset]})')
return

bids = get_bids(asset)
Expand Down
4 changes: 2 additions & 2 deletions src/autoforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def attempt_bitcoin_autoforward():
balance = get_bitcoin_balance()

if balance < MIN_BITCOIN_SEND_AMOUNT:
print(util.get_time(), 'Not enough bitcoin balance to autoforward.')
print(util.get_time(), f'Not enough Bitcoin balance to autoforward. (Balance: {balance}, Min Send: {MIN_BITCOIN_SEND_AMOUNT})')
return

fee_rate = get_bitcoin_fee_rate()
Expand Down Expand Up @@ -124,7 +124,7 @@ def attempt_monero_autoforward():
balance = get_monero_balance()

if balance < MIN_MONERO_SEND_AMOUNT:
print(util.get_time(), 'Not enough monero balance to autoforward.')
print(util.get_time(), f'Not enough Monero balance to autoforward. (Balance: {balance}, Min Send: {MIN_MONERO_SEND_AMOUNT})')
return

address = get_new_kraken_address('XMR')
Expand Down

0 comments on commit 5081da6

Please sign in to comment.