Skip to content
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

PR: Add Last Withdrawal, and Total Amount of Deposits Greater OR Equals Conditions #1893

Merged
merged 24 commits into from
Oct 21, 2024

Conversation

elraphty
Copy link
Contributor

@elraphty elraphty commented Oct 17, 2024

Describe your changes

This PR adds a condition to check that the last budget withdrawal time is greater than 1 one, it also checks that the sum of all the deposits In a workspace is greater than the sum of all withdrawals plus amount the user wants to withdraw

Issue ticket number and link

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested on Chrome and Firefox

@elraphty elraphty requested a review from Evanfeenstra October 18, 2024 17:42
Copy link
Contributor

@Evanfeenstra Evanfeenstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing getLightningInvoice into ProcessUpdateBudget does not work. It must be part of the transaction in order to be atomic. I mean, it must use the tx to query

@elraphty
Copy link
Contributor Author

Passing getLightningInvoice into ProcessUpdateBudget does not work. It must be part of the transaction in order to be atomic. I mean, it must use the tx to query

Oh! thank @Evanfeenstra, I have made that change, can you please highlight the line, I tried searching locally but couldn't find it.

@Evanfeenstra
Copy link
Contributor

you already made the other change previously. Go ahead and merge this PR @elraphty

@elraphty
Copy link
Contributor Author

you already made the other change previously. Go ahead and merge this PR @elraphty

Okay, nice

@elraphty elraphty merged commit 52357d9 into master Oct 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants