Repository navigation
Auto-liquidity fills a provider's free slots each run; max swap routing fee per provider - #644
Merged
Merged
Conversation
…ng fee per provider An auto-liquidity run now starts as many swaps as the picked provider has free slots (its max swaps in flight less its swaps in flight), each the most it takes within what is left of the excess balance and, for Spark, of its wallet's room. Beyond the first, a swap is added only while the run's worst-case routing fees fit the swap fee budget left; a swap that can't be created ends the run. Max swap routing fee becomes per provider (Loop, 40swap, Spark), used by auto-liquidity and RequestSwapOut's default; the migration renames the shared value to Loop's and copies it to the others.
…ight The batched-exit E2E now starts five swaps at once with alice's Spark max swaps in flight at 5, instead of two: all are accepted, alice's LND pays the five invoices in parallel, and all are paid and exit together.
markettes
approved these changes
Oct 16, 2026
Jossec101
enabled auto-merge (squash)
October 16, 2026 16:07
Jossec101
disabled auto-merge
October 16, 2026 16:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RequestSwapOutwhen the caller doesn't give one.AddPerProviderSwapRoutingFee) turns the node's current value into Loop's and copies it to 40swap's and Spark's, so nothing changes until you edit them.