diff options
| author | stuppie | 2026-06-17 10:37:37 -0600 |
|---|---|---|
| committer | stuppie | 2026-06-17 10:37:37 -0600 |
| commit | c5367cd10130b54d1a559625c4b7a3e7166c183c (patch) | |
| tree | 14dc63207fed5cf095bf1f7bc29ea06d8b01096b /jb/flow/assignment_tasks.py | |
| parent | d0030acb98157b4b92c372a5ba26cb7c534e79a4 (diff) | |
| download | amt-jb-c5367cd10130b54d1a559625c4b7a3e7166c183c.tar.gz amt-jb-c5367cd10130b54d1a559625c4b7a3e7166c183c.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/assignment_tasks.py')
| -rw-r--r-- | jb/flow/assignment_tasks.py | 4 |
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 ) |
