Skip to content

Commit

Permalink
Merge pull request #6 from BoltzExchange/fix/threshold-check
Browse files Browse the repository at this point in the history
fix: use >= and <= in threshold checks
  • Loading branch information
maybeast authored Jan 24, 2025
2 parents 5c501a9 + e620d1d commit 79c5ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ async def check_fees(
for from_currency, pairs in current.items():
for to_currency, fee in pairs.items():
previous_fee = previous.get(from_currency, {}).get(to_currency, 0)
below = fee < fee_threshold and previous_fee > fee_threshold
above = fee > fee_threshold and previous_fee < fee_threshold
below = fee < fee_threshold and previous_fee >= fee_threshold
above = fee > fee_threshold and previous_fee <= fee_threshold
if below or above:
await notify_subscribers(
bot,
Expand Down

0 comments on commit 79c5ec3

Please sign in to comment.