-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Job Launcher Server] Move withdrawal creation logic to payments module #3147
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think withdrawal function should include the balance check so that is not possible to withdraw if the balance is not enough
There's a problem moving it directly to the method, as the check would be executed at the end, so if the user has no balance, the job entity would have already been created.
IMO, we should keep them separately. This ensures that the balance is verified before any other operations are performed, preventing the creation of unnecessary entities and maintaining data consistency. Also, the |
IMO, withdraw function should for sure include a balance check. |
…sed pending job status
…tly and streamline job repository insert
Issue tracking
#3137
Context behind the change
Move the withdrawal creation logic to the payments module
How has this been tested?
Deployed locally and launched one new escrow
Release plan
None
Potential risks; What to monitor; Rollback plan
Check payment creation in DB