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

staticaddr: fractional swap amount #887

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hieblmi
Copy link
Collaborator

@hieblmi hieblmi commented Feb 20, 2025

This PR adds an amount flag to static loop-in swaps that allows the caller to only swap a fraction of the value of the selected deposits.

To ensure backwards UX compatibility, omitting the new flag (--amount=0) selects the total deposit amount for swapping.

TODO

  • Sign sweepless sweep with change output if needed

@hieblmi hieblmi self-assigned this Feb 20, 2025
@hieblmi hieblmi marked this pull request as draft February 20, 2025 14:47
@hieblmi hieblmi force-pushed the static-arb-amount-swap branch 3 times, most recently from fd6cc75 to f54115f Compare February 21, 2025 15:23
@hieblmi hieblmi force-pushed the static-arb-amount-swap branch from f54115f to d2bdd44 Compare March 12, 2025 15:11
@hieblmi hieblmi force-pushed the static-arb-amount-swap branch 2 times, most recently from df64647 to 358ab53 Compare March 12, 2025 16:04
@hieblmi hieblmi force-pushed the static-arb-amount-swap branch from 358ab53 to 12f6107 Compare March 12, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant