Skip to content

Commit

Permalink
🛠 Fix max_price_limit logic
Browse files Browse the repository at this point in the history
  • Loading branch information
shamhi committed Sep 2, 2024
1 parent b8208db commit a962b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/core/tapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ async def run(self, proxy: str | None) -> None:
significance = profit / max(price, 1)

free_money = balance - settings.BALANCE_TO_SAVE
max_price_limit = min(earn_on_hour, 50000) * 24
max_price_limit = max(earn_on_hour, 50000) * 24

if ((free_money * 0.8) >= price
and profit > settings.MIN_PROFIT
Expand Down

0 comments on commit a962b9e

Please sign in to comment.