aboutsummaryrefslogtreecommitdiff
path: root/jb/flow
diff options
context:
space:
mode:
authorstuppie2026-06-17 10:37:37 -0600
committerstuppie2026-06-17 10:37:37 -0600
commitc5367cd10130b54d1a559625c4b7a3e7166c183c (patch)
tree14dc63207fed5cf095bf1f7bc29ea06d8b01096b /jb/flow
parentd0030acb98157b4b92c372a5ba26cb7c534e79a4 (diff)
downloadamt-jb-master.tar.gz
amt-jb-master.zip
issue_worker_payment dont try to issue more than at a time, b/c it wont work and then the user will never have any balance releasedHEADmaster
Diffstat (limited to 'jb/flow')
-rw-r--r--jb/flow/assignment_tasks.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/jb/flow/assignment_tasks.py b/jb/flow/assignment_tasks.py
index 326c87c..758e0b7 100644
--- a/jb/flow/assignment_tasks.py
+++ b/jb/flow/assignment_tasks.py
@@ -471,6 +471,10 @@ def issue_worker_payment(
if not amount:
return None
+ # Don't send more than $4.97 at a time. If they have a higher wallet balance,
+ # they just need to get another hit approved.
+ amount = min(amount, USDCent(4_97))
+
pe = submit_and_approve_amt_bonus_request(
amt_worker_id=assignment.amt_worker_id, amount=amount
)