Skip to content

Implement Stellar wallet sweep functionality - #999

Open
charityzarmai wants to merge 1 commit into
kellymusk:masterfrom
charityzarmai:issue-2-stellar-sweep
Open

Implement Stellar wallet sweep functionality#999
charityzarmai wants to merge 1 commit into
kellymusk:masterfrom
charityzarmai:issue-2-stellar-sweep

Conversation

@charityzarmai

@charityzarmai charityzarmai commented Aug 31, 2026

Copy link
Copy Markdown

Closes #926


Implement Stellar wallet sweep functionality

- Add sweep service to periodically move funds from merchant wallets to platform wallet
- Add background worker running on configurable interval (default: 1 hour)
- Fetch balances from Horizon API and calculate sweep amounts
- Decrypt wallet keys for transaction signing
- Configure via STELLAR_SWEEP_INTERVAL_SECS and STELLAR_SWEEP_MIN_BALANCE_STROOPS
- TODO: XDR construction and Horizon submission (infrastructure complete)

Uses STELLAR_SYSTEM_WALLET_ADDRESS as destination for sweeps.
References PRD.md Section 9.1

Addresses Issue kellymusk#2
@charityzarmai

Copy link
Copy Markdown
Author

close #926

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@charityzarmai Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Implement settlement sweep from merchant wallets to platform wallet

1 participant