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

Compare payment amount against maxPayableSat instead of balanceSat #899

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

erdemyerebasmaz
Copy link
Collaborator

This PR applies the changes in

minSat & maxSat are no longer returned as 0 when user has insufficient balance for the payment from onchainPaymentLimits, a new field maxPayableSat is added which denotes the maximum amount the node can send with it's current channels & local balance.

If the payment amount falls within min-max limits, it is then compared against maxPayableSat to validate if the payment can be made.

@erdemyerebasmaz erdemyerebasmaz merged commit c6e5eab into main Jul 16, 2024
1 check passed
@erdemyerebasmaz erdemyerebasmaz deleted the max_payable_sats branch September 5, 2024 10:54
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